1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s3: Convert cli_set_secdesc to cli_trans

This commit is contained in:
Volker Lendecke
2011-01-15 16:20:37 +01:00
parent 4fc5699a79
commit 50b3458261
5 changed files with 35 additions and 43 deletions

View File

@ -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;
}