From 2a0398dee8521704b90d3f1776a5e380bf8ac5b3 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Wed, 12 May 2010 19:10:47 +0000 Subject: added features/mac-compat Signed-off-by: Csaba Henk Signed-off-by: Anand V. Avati BUG: 800 (Problem on OSX with NFS and CIFS exports) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=800 --- xlators/storage/posix/src/posix.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'xlators/storage') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 677aa0270da..22e9fcecb23 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -3025,7 +3025,7 @@ posix_getxattr (call_frame_t *frame, xlator_t *this, { struct posix_private *priv = NULL; int32_t op_ret = -1; - int32_t op_errno = ENOENT; + int32_t op_errno = 0; int32_t list_offset = 0; size_t size = 0; size_t remaining_size = 0; @@ -3134,8 +3134,11 @@ posix_getxattr (call_frame_t *frame, xlator_t *this, } op_ret = sys_lgetxattr (real_path, key, value, op_ret); - if (op_ret == -1) + if (op_ret == -1) { + op_errno = errno; + break; + } value [op_ret] = '\0'; if (strcmp (key, gen_key) != 0) -- cgit