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

Make cli_setatr async.

Jeremy.
This commit is contained in:
Jeremy Allison
2009-05-06 16:13:42 -07:00
parent 78fb479325
commit 606edf0f35
7 changed files with 145 additions and 8 deletions

View File

@@ -1573,7 +1573,7 @@ SMBC_chmod_ctx(SMBCCTX *context,
if ((newmode & S_IXGRP) && lp_map_system(-1)) mode |= aSYSTEM;
if ((newmode & S_IXOTH) && lp_map_hidden(-1)) mode |= aHIDDEN;
if (!cli_setatr(targetcli, targetpath, mode, 0)) {
if (!NT_STATUS_IS_OK(cli_setatr(targetcli, targetpath, mode, 0))) {
errno = SMBC_errno(context, targetcli);
TALLOC_FREE(frame);
return -1;