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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user