From f2fcd645da01fae8755d37e67f0e3fd9179b8790 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 9 Mar 2011 00:11:42 +0000 Subject: gluster rebalance: set the proper permission of the file remove the sticky bit from the mode. Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur BUG: 2369 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2369 --- xlators/mgmt/glusterd/src/glusterd-rebalance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- cgit