diff options
author | sin <sin@2f30.org> | 2014-09-26 16:49:33 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-09-26 16:49:33 +0100 |
commit | 926b69de44057351e1af1316a4093ba0ff619412 (patch) | |
tree | 2474619e261f104ba0c7c7b27edfdf00f0c19b30 /ratox.c | |
parent | 1fce5203713df7304c4e9bcb0f94ea3a8c6b184a (diff) |
Default perms for directories should be 0777
A umask of 022 gives us 0755.
Diffstat (limited to 'ratox.c')
-rw-r--r-- | ratox.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |