Fossil SCM
_WIN32 also disables write directory check for _fossil user db(like _MINGW32_)
Commit
5bf2ede641b53df254b44d16ae63370ceb9f8339
Parent
214d2faf6d4627a…
1 file changed
+2
M
src/db.c
+2
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -665,13 +665,15 @@ | ||
| 665 | 665 | #endif |
| 666 | 666 | if( file_isdir(zHome)!=1 ){ |
| 667 | 667 | fossil_fatal("invalid home directory: %s", zHome); |
| 668 | 668 | } |
| 669 | 669 | #ifndef __MINGW32__ |
| 670 | +#ifndef _WIN32 | |
| 670 | 671 | if( access(zHome, W_OK) ){ |
| 671 | 672 | fossil_fatal("home directory %s must be writeable", zHome); |
| 672 | 673 | } |
| 674 | +#endif | |
| 673 | 675 | #endif |
| 674 | 676 | g.zHome = mprintf("%/", zHome); |
| 675 | 677 | #if defined(_WIN32) |
| 676 | 678 | /* . filenames give some window systems problems and many apps problems */ |
| 677 | 679 | zDbName = mprintf("%//_fossil", zHome); |
| 678 | 680 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -665,13 +665,15 @@ | |
| 665 | #endif |
| 666 | if( file_isdir(zHome)!=1 ){ |
| 667 | fossil_fatal("invalid home directory: %s", zHome); |
| 668 | } |
| 669 | #ifndef __MINGW32__ |
| 670 | if( access(zHome, W_OK) ){ |
| 671 | fossil_fatal("home directory %s must be writeable", zHome); |
| 672 | } |
| 673 | #endif |
| 674 | g.zHome = mprintf("%/", zHome); |
| 675 | #if defined(_WIN32) |
| 676 | /* . filenames give some window systems problems and many apps problems */ |
| 677 | zDbName = mprintf("%//_fossil", zHome); |
| 678 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -665,13 +665,15 @@ | |
| 665 | #endif |
| 666 | if( file_isdir(zHome)!=1 ){ |
| 667 | fossil_fatal("invalid home directory: %s", zHome); |
| 668 | } |
| 669 | #ifndef __MINGW32__ |
| 670 | #ifndef _WIN32 |
| 671 | if( access(zHome, W_OK) ){ |
| 672 | fossil_fatal("home directory %s must be writeable", zHome); |
| 673 | } |
| 674 | #endif |
| 675 | #endif |
| 676 | g.zHome = mprintf("%/", zHome); |
| 677 | #if defined(_WIN32) |
| 678 | /* . filenames give some window systems problems and many apps problems */ |
| 679 | zDbName = mprintf("%//_fossil", zHome); |
| 680 |