summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-07-03 11:49:07 +0200
committerVolker Lendecke <vl@samba.org>2011-07-03 22:45:25 +0200
commit4569a3a75a047d2e4b84d681d8478640ad89d48d (patch)
treeb993f9412d51eb5ce595ae207a0e96081b8b2f53 /source3
parent8238d89823ba9205546ea0538f1d6b844b3ba829 (diff)
downloadsamba-4569a3a75a047d2e4b84d681d8478640ad89d48d.tar.gz
samba-4569a3a75a047d2e4b84d681d8478640ad89d48d.tar.bz2
samba-4569a3a75a047d2e4b84d681d8478640ad89d48d.zip
s3: Remove a use of cli_errstr
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/libsmb_xattr.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/libsmb/libsmb_xattr.c b/source3/libsmb/libsmb_xattr.c
index 742b304832..7695dfb99e 100644
--- a/source3/libsmb/libsmb_xattr.c
+++ b/source3/libsmb/libsmb_xattr.c
@@ -1666,11 +1666,13 @@ cacl_set(SMBCCTX *context,
sd = make_sec_desc(ctx, old->revision, SEC_DESC_SELF_RELATIVE,
owner_sid, group_sid, NULL, dacl, &sd_size);
- if (!NT_STATUS_IS_OK(cli_ntcreate(targetcli, targetpath, 0,
- WRITE_DAC_ACCESS | WRITE_OWNER_ACCESS, 0,
- FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OPEN, 0x0, 0x0, &fnum))) {
+ status = cli_ntcreate(targetcli, targetpath, 0,
+ WRITE_DAC_ACCESS | WRITE_OWNER_ACCESS, 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;
}