diff options
author | David Stainton <dstainton415@gmail.com> | 2014-08-29 05:58:53 +0000 |
---|---|---|
committer | meejah <meejah@meejah.ca> | 2014-08-30 15:23:05 -0600 |
commit | 227b65924b557b30855f659360a8547e352c1ec6 (patch) | |
tree | 3ccf6d23be24357d0c23a5014a0cdbfa5f56ba64 /src/common/util.c | |
parent | c13db1f6143cf99830dc73dd527898e711e6b704 (diff) | |
download | tor-227b65924b557b30855f659360a8547e352c1ec6.tar.gz tor-227b65924b557b30855f659360a8547e352c1ec6.zip |
Clean up patch
Here I clean up anon's patch with a few of nickm's suggestions from comment 12:
https://trac.torproject.org/projects/tor/ticket/11291#comment:12
I did not yet completely implement all his suggestions.
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common/util.c b/src/common/util.c index 6971e4d627..0865fe7c7f 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1914,10 +1914,9 @@ check_private_dir(const char *dirname, cpd_check_t check, r = mkdir(dirname); #else if (check & CPD_GROUP_READ) { - r = mkdir(dirname, STAT_RWXU|STAT_RGRP|STAT_XGRP); - } - else { - r = mkdir(dirname, STAT_RWXU); + r = mkdir(dirname, 0750); + } else { + r = mkdir(dirname, 0700); } #endif if (r) { |