summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorroot <shishirng@gluster.com>2012-01-23 14:32:31 +0530
committerVijay Bellur <vijay@gluster.com>2012-01-23 09:42:39 -0800
commit366c98afe6d8ec1e69d33baad5e914fa3229f2a1 (patch)
tree7306a015371d173f83fa98423eb01efabb2e6f02 /xlators
parent4e92c58d27b5cea9d7346d6dd88be9b3479c9e3b (diff)
storage/posix: Pass correct size to sys_lgetxattr
We were passing op_ret (0), instead of size variable obtained by previous sys_lgetxattr to determine the size Signed-off-by: root <shishirng@gluster.com> Change-Id: I886dedc2ab752ac1feabe7a79725ea5f069d6865 BUG: 783916 Reviewed-on: http://review.gluster.com/2676 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Rahul C S <rahulcs@redhat.com> Reviewed-by: Amar Tumballi <amar@gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/storage/posix/src/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 5257633ce..7f82431e8 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -2445,7 +2445,7 @@ posix_getxattr (call_frame_t *frame, xlator_t *this,
op_ret = -1;
goto out;
}
- op_ret = sys_lgetxattr (real_path, key, value, op_ret);
+ op_ret = sys_lgetxattr (real_path, key, value, size);
if (op_ret == -1) {
op_errno = errno;
goto out;