summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-store.c
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-08-15 13:03:10 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-16 00:38:55 -0700
commit7ebf4817f3535c8b5e78a0edb3b40ed2843a305f (patch)
tree69f499a9ec8ea9c608562adb349b1910e7aa6f59 /xlators/mgmt/glusterd/src/glusterd-store.c
parentcd8c7a98e0ccab7866c6deb9174b662584ef91c6 (diff)
glusterd: Set appropriate directory permissions
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1291 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1291
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-store.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-store.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
index 84fd42d06..ce9d9d8a6 100644
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
@@ -65,7 +65,7 @@ glusterd_store_create_volume_dir (char *volname)
snprintf (path, 1024, "%s/vols/%s", priv->workdir,
volname);
- ret = mkdir (path, 0x777);
+ ret = mkdir (path, 0777);
if (-1 == ret) {
gf_log ("", GF_LOG_ERROR, "mkdir() failed on path %s,"
@@ -104,7 +104,7 @@ glusterd_store_create_brick (glusterd_volinfo_t *volinfo,
ret = stat (path, &stbuf);
if (ret == -1 && ENOENT == errno) {
- ret = mkdir (path, 0x777);
+ ret = mkdir (path, 0777);
if (ret)
goto out;
}