From 926b69de44057351e1af1316a4093ba0ff619412 Mon Sep 17 00:00:00 2001 From: sin Date: Fri, 26 Sep 2014 16:49:33 +0100 Subject: Default perms for directories should be 0777 A umask of 022 gives us 0755. --- ratox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ratox.c b/ratox.c index fddd57f..141953b 100644 --- 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); -- cgit v1.2.3