summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-rebalance.c
diff options
context:
space:
mode:
authorSanju Rakonde <srakonde@redhat.com>2019-07-08 11:34:49 +0530
committerAmar Tumballi <amarts@redhat.com>2019-07-23 03:23:48 +0000
commit70a735b75ac8ca942b212cc1c56441e9387f30e6 (patch)
treea1df3de470607e3f2e41301819bb6bb7049feece /xlators/mgmt/glusterd/src/glusterd-rebalance.c
parent2aa731a259ea457c07494e3c3edf6d5f7c02fe77 (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 'xlators/mgmt/glusterd/src/glusterd-rebalance.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-rebalance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
index 5733729..d440a71 100644
--- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c
+++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
@@ -255,7 +255,7 @@ glusterd_handle_defrag_start(glusterd_volinfo_t *volinfo, char *op_errstr,
glusterd_store_perform_node_state_store(volinfo);
GLUSTERD_GET_DEFRAG_DIR(defrag_path, volinfo, priv);
- ret = mkdir_p(defrag_path, 0777, _gf_true);
+ ret = mkdir_p(defrag_path, 0755, _gf_true);
if (ret) {
gf_msg(this->name, GF_LOG_ERROR, errno, GD_MSG_CREATE_DIR_FAILED,
"Failed to create "