summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-03-08 01:07:26 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-10 17:51:46 -0800
commitbe00f14b935f775b4df45e2acf281b19a28f8f7e (patch)
tree9d0ca6ba91546b8ed00552a040bb1d04b233e488 /xlators/mgmt
parenta0aafa365dd355864d24232bd6d7f399ef38f9ef (diff)
gluster rebalance: set the proper permission of the file
remove the sticky bit from the mode. Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2369 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2369
Diffstat (limited to 'xlators/mgmt')
-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 58c12c19385..d69f59eab11 100644
--- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c
+++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
@@ -130,7 +130,7 @@ gf_glusterd_rebalance_move_data (glusterd_volinfo_t *volinfo, const char *dir)
continue;
}
- ret = fchmod (dst_fd, stbuf.st_mode);
+ ret = fchmod (dst_fd, (stbuf.st_mode & ~01000));
if (ret) {
gf_log ("", GF_LOG_WARNING,
"failed to set the mode of file %s: %s",