From 04e222e88d56cf06c0470e60c6910611a8286657 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Mon, 12 Jan 2015 10:33:06 +0530 Subject: storage/posix: Set correct fsgid before doing symlink Change-Id: Ic50dfa5e5084c7b148e42a5014cca2b47c8ab5ed BUG: 1180986 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/9431 Tested-by: Gluster Build System Reviewed-by: Jeff Darcy Reviewed-by: Raghavendra Bhat --- xlators/storage/posix/src/posix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/storage') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 638e0f59202..72c219784bd 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -1724,10 +1724,10 @@ posix_symlink (call_frame_t *frame, xlator_t *this, MAKE_ENTRY_HANDLE (real_path, par_path, this, loc, &stbuf); - SET_FS_ID (frame->root->uid, gid); - gid = frame->root->gid; + SET_FS_ID (frame->root->uid, gid); + op_ret = posix_pstat (this, loc->pargfid, par_path, &preparent); if (op_ret == -1) { op_errno = errno; -- cgit