diff options
author | drh <drh@noemail.net> | 2011-10-20 18:23:35 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-10-20 18:23:35 +0000 |
commit | d337c5bde89344df122e2853c7547aad39356757 (patch) | |
tree | a2844e0e4e5399d9aff051c8cd1da40818a241f0 /src/os_unix.c | |
parent | 60bdeb2aa9a6f0472d9dd397756f9e44c2014ba5 (diff) | |
download | sqlite-d337c5bde89344df122e2853c7547aad39356757.tar.gz sqlite-d337c5bde89344df122e2853c7547aad39356757.zip |
Fix an issue with finding the access permissions of journal files when
8+3 filenames are in use.
FossilOrigin-Name: 2b35c5144ddcc2ed6d0fcaa8c0ba5d20b9487be7
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 2e43eabf1..0ea6daf27 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -4874,13 +4874,13 @@ static int findCreateFileMode( ** "<path to db>-journalNN" ** "<path to db>-walNN" ** - ** where NN is a 4 digit decimal number. The NN naming schemes are + ** where NN is a decimal number. The NN naming schemes are ** used by the test_multiplex.c module. */ nDb = sqlite3Strlen30(zPath) - 1; #ifdef SQLITE_ENABLE_8_3_NAMES - while( nDb>0 && zPath[nDb]!='-' && zPath[nDb]!='/' ) nDb--; - if( nDb==0 || zPath[nDb]=='/' ) return SQLITE_OK; + while( nDb>0 && !sqlite3Isalnum(zPath[nDb]) ) nDb--; + if( nDb==0 || zPath[nDb]!='-' ) return SQLITE_OK; #else while( zPath[nDb]!='-' ){ assert( nDb>0 ); |