summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/libsmb_xattr.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-07-03 11:47:44 +0200
committerVolker Lendecke <vl@samba.org>2011-07-03 22:45:25 +0200
commit8238d89823ba9205546ea0538f1d6b844b3ba829 (patch)
treec9eadc1ba3a993a367090602c182f6e512bb8584 /source3/libsmb/libsmb_xattr.c
parentcfbd339b4a9e11f781755581efbe51d99dc997b6 (diff)
downloadsamba-8238d89823ba9205546ea0538f1d6b844b3ba829.tar.gz
samba-8238d89823ba9205546ea0538f1d6b844b3ba829.tar.xz
samba-8238d89823ba9205546ea0538f1d6b844b3ba829.zip
s3: Remove a use of cli_errstr
Diffstat (limited to 'source3/libsmb/libsmb_xattr.c')
-rw-r--r--source3/libsmb/libsmb_xattr.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/libsmb/libsmb_xattr.c b/source3/libsmb/libsmb_xattr.c
index d04eb1122b..742b304832 100644
--- a/source3/libsmb/libsmb_xattr.c
+++ b/source3/libsmb/libsmb_xattr.c
@@ -1559,10 +1559,12 @@ cacl_set(SMBCCTX *context,
/* The desired access below is the only one I could find that works
with NT4, W2KP and Samba */
- if (!NT_STATUS_IS_OK(cli_ntcreate(targetcli, targetpath, 0, CREATE_ACCESS_READ, 0,
- FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OPEN, 0x0, 0x0, &fnum))) {
+ status = cli_ntcreate(targetcli, targetpath, 0, CREATE_ACCESS_READ, 0,
+ FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OPEN,
+ 0x0, 0x0, &fnum);
+ if (!NT_STATUS_IS_OK(status)) {
DEBUG(5, ("cacl_set failed to open %s: %s\n",
- targetpath, cli_errstr(targetcli)));
+ targetpath, nt_errstr(status)));
errno = 0;
return -1;
}