diff options
Diffstat (limited to 'src/librcc.c')
-rw-r--r-- | src/librcc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/librcc.c b/src/librcc.c index b11c2ee..0fb9211 100644 --- a/src/librcc.c +++ b/src/librcc.c @@ -347,10 +347,18 @@ int rccInitDb4(rcc_context ctx, const char *name, rcc_db4_flags flags) { if (!dbname) return -1; sprintf(dbname,"%s/.rcc/",rcc_home_dir); +#ifdef _WIN32 + mkdir(dbname); +#else mkdir(dbname, 00755); +#endif sprintf(dbname,"%s/.rcc/%s.db/",rcc_home_dir,name); +#ifdef _WIN32 + mkdir(dbname); +#else mkdir(dbname, 00755); +#endif ctx->db4ctx = rccDb4CreateContext(dbname, flags); free(dbname); |