Overview
SHA1 Hash: | 1d280a85aab918292429ab053191aea8c5a3cd1a |
---|---|
Date: | 2008-10-31 13:33:36 |
User: | drh |
Comment: | Take care that the root directory name does not have extra "/" characters.
Ticket |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/db.c from [594da7eeb0] to [ed66011978].
@@ -634,10 +634,14 @@ for(i=0; i<sizeof(aDbName)/sizeof(aDbName[0]); i++){ strcpy(&zPwd[n], aDbName[i]); if( isValidLocalDb(zPwd) ){ /* Found a valid checkout database file */ zPwd[n] = 0; + while( n>1 && zPwd[n-1]=='/' ){ + n--; + zPwd[n] = 0; + } g.zLocalRoot = mprintf("%s/", zPwd); return 1; } } n--;