diff options
author | Sanju Rakonde <srakonde@redhat.com> | 2019-07-08 11:34:49 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-07-23 03:23:48 +0000 |
commit | 70a735b75ac8ca942b212cc1c56441e9387f30e6 (patch) | |
tree | a1df3de470607e3f2e41301819bb6bb7049feece /libglusterfs/src/compat.c | |
parent | 2aa731a259ea457c07494e3c3edf6d5f7c02fe77 (diff) |
core: use more restrictive mode while creating the directories
fixes: bz#1724024
Change-Id: I539fb7248b2cfc037ec29f1413ea648f9ec21ef2
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'libglusterfs/src/compat.c')
-rw-r--r-- | libglusterfs/src/compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/compat.c b/libglusterfs/src/compat.c index 877cda282de..8a05a30a8fe 100644 --- a/libglusterfs/src/compat.c +++ b/libglusterfs/src/compat.c @@ -176,7 +176,7 @@ solaris_xattr_resolve_path(const char *real_path, char **path) if (!ret && export_path) { strcat(export_path, "/" GF_SOLARIS_XATTR_DIR); if (lstat(export_path, &statbuf)) { - ret = mkdir(export_path, 0777); + ret = mkdir(export_path, 0755); if (ret && (errno != EEXIST)) { gf_msg_debug(THIS->name, 0, "mkdir failed," |