commit 926b69de44057351e1af1316a4093ba0ff619412
parent 1fce5203713df7304c4e9bcb0f94ea3a8c6b184a
Author: sin <sin@2f30.org>
Date: Fri, 26 Sep 2014 16:49:33 +0100
Default perms for directories should be 0777
A umask of 022 gives us 0755.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ratox.c b/ratox.c
@@ -753,7 +753,7 @@ localinit(void)
size_t i, m;
for (i = 0; i < LEN(gslots); i++) {
- r = mkdir(gslots[i].name, 0755);
+ r = mkdir(gslots[i].name, 0777);
if (r < 0 && errno != EEXIST)
eprintf("mkdir %s:", gslots[i].name);
@@ -924,7 +924,7 @@ friendcreate(int32_t frnum)
tox_get_client_id(tox, f->num, f->id);
id2str(f->id, f->idstr);
- r = mkdir(f->idstr, 0755);
+ r = mkdir(f->idstr, 0777);
if (r < 0 && errno != EEXIST)
eprintf("mkdir %s:", f->idstr);