summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-03-09 00:11:42 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-09 05:45:06 -0800
commitf2fcd645da01fae8755d37e67f0e3fd9179b8790 (patch)
tree1a347586936e8c6683c119898124bd29064e899a /xlators/mgmt
parent35292cc0be1a6452ae55c3e3193cca22b323d6dc (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 58c12c193..d69f59eab 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",