diff options
Diffstat (limited to 'src/rcclock.c')
-rw-r--r-- | src/rcclock.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rcclock.c b/src/rcclock.c index e5dda52..b72fd9f 100644 --- a/src/rcclock.c +++ b/src/rcclock.c @@ -63,10 +63,18 @@ int rccLock() { if (!stmp) return -1; sprintf(stmp,"%s/.rcc/", rcc_home_dir); +#ifdef _WIN32 + mkdir(stmp); +#else mkdir(stmp, 00755); +#endif sprintf(stmp,"%s/.rcc/locks/", rcc_home_dir); +#ifdef _WIN32 + mkdir(stmp); +#else mkdir(stmp, 00700); +#endif sprintf(stmp,"%s/.rcc/locks/rcc.lock", rcc_home_dir); |