From 50b3458261fbcb304219b753a8690ed8ed9fc2cc Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 15 Jan 2011 16:20:37 +0100 Subject: s3: Convert cli_set_secdesc to cli_trans --- source3/libsmb/libsmb_xattr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/libsmb/libsmb_xattr.c') diff --git a/source3/libsmb/libsmb_xattr.c b/source3/libsmb/libsmb_xattr.c index 7086808f3c..155a6b9741 100644 --- a/source3/libsmb/libsmb_xattr.c +++ b/source3/libsmb/libsmb_xattr.c @@ -1513,6 +1513,7 @@ cacl_set(SMBCCTX *context, bool numeric = True; char *targetpath = NULL; struct cli_state *targetcli = NULL; + NTSTATUS status; /* the_acl will be null for REMOVE_ALL operations */ if (the_acl) { @@ -1666,9 +1667,10 @@ cacl_set(SMBCCTX *context, return -1; } - if (!cli_set_secdesc(targetcli, fnum, sd)) { + status = cli_set_secdesc(targetcli, fnum, sd); + if (!NT_STATUS_IS_OK(status)) { DEBUG(5, ("ERROR: secdesc set failed: %s\n", - cli_errstr(targetcli))); + nt_errstr(status))); ret = -1; } -- cgit