Differences From:
File
src/db.c
part of check-in
[0600b278c0]
- Remove the unused inherit-anon configuration attribute. Fix the automatic
redirect that follows a login operation. Fix "config push user" on the
server side.
by
drh on
2008-10-26 21:30:23.
[view]
To:
File
src/db.c
part of check-in
[1d280a85aa]
- Take care that the root directory name does not have extra "/" characters.
Ticket 9c378ed139.
by
drh on
2008-10-31 13:33:36.
[view]
@@ -635,8 +635,12 @@
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;
}
}