diff options
Diffstat (limited to 'external')
-rw-r--r-- | external/rccexternal.c | 2 | ||||
-rw-r--r-- | external/rcclibtranslate.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/external/rccexternal.c b/external/rccexternal.c index 292ee5d..b09623d 100644 --- a/external/rccexternal.c +++ b/external/rccexternal.c @@ -87,7 +87,7 @@ int main() { rccLibTranslateInit(rcc_home_dir); sprintf(addr,"%s/.rcc/comm/",rcc_home_dir); - mkdir(addr, 00600); + mkdir(addr, 00700); sprintf(addr,"%s/.rcc/comm/%lu.sock", rcc_home_dir, (unsigned long)mypid); s = socket(PF_UNIX, SOCK_STREAM, 0); diff --git a/external/rcclibtranslate.c b/external/rcclibtranslate.c index 46fcd6e..7a36814 100644 --- a/external/rcclibtranslate.c +++ b/external/rcclibtranslate.c @@ -139,10 +139,10 @@ int rccLibTranslateInit(const char *rcc_home_dir) { dbname = (char*)malloc(size*sizeof(char)); if (dbname) { sprintf(dbname,"%s/.rcc/",rcc_home_dir); - mkdir(dbname, 00644); + mkdir(dbname, 00755); sprintf(dbname,"%s/.rcc/libtranslate.db/",rcc_home_dir); - mkdir(dbname, 00644); + mkdir(dbname, 00755); db4ctx = rccDb4CreateContext(dbname, 0); free(dbname); |