Check-in [1d280a85aa]
Not logged in
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 9c378ed139.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
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--;