/ Check-in [169e1229]
Login

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

Overview
Comment:Fix os_unix.c so that, unless 8.3 filenames are actually in use, journal and wal file permissions are assigned correctly even if SQLITE_ENABLE_8_3_NAMES is defined.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:169e12295cca701443746b1209bd6a7714fd8988
User & Date: dan 2011-12-12 19:48:43
Context
2011-12-13
15:37
Merge the nx-devkit changes into trunk. check-in: 03a70c3d user: drh tags: trunk
11:15
Change the way IO errors are handled in the xFileSize method of the multiplexor VFS. Add test file multiplex3.test. check-in: 255d2149 user: dan tags: experimental
2011-12-12
19:48
Fix os_unix.c so that, unless 8.3 filenames are actually in use, journal and wal file permissions are assigned correctly even if SQLITE_ENABLE_8_3_NAMES is defined. check-in: 169e1229 user: dan tags: trunk
18:55
Change the multiplexor VFS so that xTruncate is a no-op on database files. check-in: ee1e0122 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

  4895   4895       **   "<path to db>-walNN"
  4896   4896       **
  4897   4897       ** where NN is a decimal number. The NN naming schemes are 
  4898   4898       ** used by the test_multiplex.c module.
  4899   4899       */
  4900   4900       nDb = sqlite3Strlen30(zPath) - 1; 
  4901   4901   #ifdef SQLITE_ENABLE_8_3_NAMES
  4902         -    while( nDb>0 && !sqlite3Isalnum(zPath[nDb]) ) nDb--;
         4902  +    while( nDb>0 && sqlite3Isalnum(zPath[nDb]) ) nDb--;
  4903   4903       if( nDb==0 || zPath[nDb]!='-' ) return SQLITE_OK;
  4904   4904   #else
  4905   4905       while( zPath[nDb]!='-' ){
  4906   4906         assert( nDb>0 );
  4907   4907         assert( zPath[nDb]!='\n' );
  4908   4908         nDb--;
  4909   4909       }