summaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c7
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) {