/ Check-in [51029d84]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Do not override the fchmod system call in unix unless the SQLITE_ENABLE_LOCKING_STYLE compile-time option is engaged.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 51029d8430d2dbc782f161577d47e3dd11c4e4d7
User & Date: drh 2011-04-11 18:35:09
References
2011-04-13
13:22 New ticket [bb3a86e8] SQLITE_FCNTL_SIZE_HINT overflows an array. artifact: 355cefba user: drh
Context
2011-04-12
01:58
Version 3.7.6. check-in: f9d43fa3 user: drh tags: trunk, release, version-3.7.6
2011-04-11
18:35
Do not override the fchmod system call in unix unless the SQLITE_ENABLE_LOCKING_STYLE compile-time option is engaged. check-in: 51029d84 user: drh tags: trunk
15:36
Updates to the OS/2 patches. This change also move the location of a global variable declaration in shell.c which might effect other build targets. check-in: 73906b67 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

   359    359     { "pwrite64",     (sqlite3_syscall_ptr)pwrite64,   0  },
   360    360   #else
   361    361     { "pwrite64",     (sqlite3_syscall_ptr)0,          0  },
   362    362   #endif
   363    363   #define osPwrite64  ((ssize_t(*)(int,const void*,size_t,off_t))\
   364    364                       aSyscall[13].pCurrent)
   365    365   
          366  +#if SQLITE_ENABLE_LOCKING_STYLE
   366    367     { "fchmod",       (sqlite3_syscall_ptr)fchmod,     0  },
   367    368   #define osFchmod    ((int(*)(int,mode_t))aSyscall[14].pCurrent)
          369  +#endif
   368    370   
   369    371   #if defined(HAVE_POSIX_FALLOCATE) && HAVE_POSIX_FALLOCATE
   370    372     { "fallocate",    (sqlite3_syscall_ptr)posix_fallocate,  0 },
   371    373   #else
   372    374     { "fallocate",    (sqlite3_syscall_ptr)0,                0 },
   373    375   #endif
   374    376   #define osFallocate ((int(*)(int,off_t,off_t))aSyscall[15].pCurrent)