diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-10-31 00:22:26 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-10-31 00:22:26 +0000 |
commit | 907199c194af0cb3912219b808aab13df763c022 (patch) | |
tree | 040b0f954a339186b80af486bd1a3c84f15f7477 /external | |
parent | cf9f426f278f57ea74cd22ffda07047c2fb4ce9c (diff) | |
download | librcc-907199c194af0cb3912219b808aab13df763c022.tar.gz librcc-907199c194af0cb3912219b808aab13df763c022.tar.bz2 librcc-907199c194af0cb3912219b808aab13df763c022.tar.xz librcc-907199c194af0cb3912219b808aab13df763c022.zip |
Permission fix
- Fixes .rcc directory permissions ( Bug report by AlexMal )
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); |