diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2015-01-12 10:33:06 +0530 |
---|---|---|
committer | Raghavendra Bhat <raghavendra@redhat.com> | 2015-01-12 10:29:44 -0800 |
commit | 04e222e88d56cf06c0470e60c6910611a8286657 (patch) | |
tree | 5ce765c1bdcef5d522ebf536d4fa82d2ce77e9f1 | |
parent | c49a77001bd80affa70d22ba974d8de9e3f0f0cd (diff) |
storage/posix: Set correct fsgid before doing symlink
Change-Id: Ic50dfa5e5084c7b148e42a5014cca2b47c8ab5ed
BUG: 1180986
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/9431
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
-rw-r--r-- | xlators/storage/posix/src/posix.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |