Fossil SCM

Use the %/ substitution instead of %s when constructing windows pathnames.

drh 2008-07-15 02:01 trunk
Commit 9d232303226f58867cc515fa028cafec9a031464
1 file changed +1 -1
+1 -1
--- src/db.c
+++ src/db.c
@@ -571,11 +571,11 @@
571571
if( zHome==0 ){
572572
db_err("cannot local home directory");
573573
}
574574
#ifdef __MINGW32__
575575
/* . filenames give some window systems problems and many apps problems */
576
- zDbName = mprintf("%s/_fossil", zHome);
576
+ zDbName = mprintf("%//_fossil", zHome);
577577
#else
578578
zDbName = mprintf("%s/.fossil", zHome);
579579
#endif
580580
if( g.configOpen ) return;
581581
if( file_size(zDbName)<1024*3 ){
582582
--- src/db.c
+++ src/db.c
@@ -571,11 +571,11 @@
571 if( zHome==0 ){
572 db_err("cannot local home directory");
573 }
574 #ifdef __MINGW32__
575 /* . filenames give some window systems problems and many apps problems */
576 zDbName = mprintf("%s/_fossil", zHome);
577 #else
578 zDbName = mprintf("%s/.fossil", zHome);
579 #endif
580 if( g.configOpen ) return;
581 if( file_size(zDbName)<1024*3 ){
582
--- src/db.c
+++ src/db.c
@@ -571,11 +571,11 @@
571 if( zHome==0 ){
572 db_err("cannot local home directory");
573 }
574 #ifdef __MINGW32__
575 /* . filenames give some window systems problems and many apps problems */
576 zDbName = mprintf("%//_fossil", zHome);
577 #else
578 zDbName = mprintf("%s/.fossil", zHome);
579 #endif
580 if( g.configOpen ) return;
581 if( file_size(zDbName)<1024*3 ){
582

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button