summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_acl_xattr.c
diff options
context:
space:
mode:
authorRichard Sharpe <realrichardsharpe@gmail.com>2012-05-15 07:47:14 -0700
committerRichard Sharpe <sharpe@samba.org>2012-05-16 03:43:40 +0200
commitbfe4a2baeec6bc4558a617ec67532ea11f865861 (patch)
tree93bc48a8428c072abbb18c63e7599fadf5907509 /source3/modules/vfs_acl_xattr.c
parentb6e36089e5bd43baeb41e8299ad8970b1cd32c88 (diff)
downloadsamba-bfe4a2baeec6bc4558a617ec67532ea11f865861.tar.gz
samba-bfe4a2baeec6bc4558a617ec67532ea11f865861.tar.bz2
samba-bfe4a2baeec6bc4558a617ec67532ea11f865861.zip
Fix the overwriting of errno before use in a DEBUG statement and use the return value from store_acl_blob_fsp rather than ignoring it.
Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Wed May 16 03:43:41 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/modules/vfs_acl_xattr.c')
-rw-r--r--source3/modules/vfs_acl_xattr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/modules/vfs_acl_xattr.c b/source3/modules/vfs_acl_xattr.c
index 5653657066..c1b0a60e16 100644
--- a/source3/modules/vfs_acl_xattr.c
+++ b/source3/modules/vfs_acl_xattr.c
@@ -119,12 +119,12 @@ static NTSTATUS store_acl_blob_fsp(vfs_handle_struct *handle,
}
unbecome_root();
if (ret) {
- errno = saved_errno;
DEBUG(5, ("store_acl_blob_fsp: setting attr failed for file %s"
"with error %s\n",
fsp_str_dbg(fsp),
- strerror(errno) ));
- return map_nt_error_from_unix(errno);
+ strerror(saved_errno) ));
+ errno = saved_errno;
+ return map_nt_error_from_unix(saved_errno);
}
return NT_STATUS_OK;
}