mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
vfs: Replace a "== false" with a "!"
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
efbfa9fc44
commit
1a52b30d92
@ -742,7 +742,7 @@ static NTSTATUS set_underlying_acl(vfs_handle_struct *handle, files_struct *fsp,
|
||||
/* We got access denied here. If we're already root,
|
||||
or we didn't need to do a chown, or the fsp isn't
|
||||
open with WRITE_OWNER access, just return. */
|
||||
if (get_current_uid(handle->conn) == 0 || chown_needed == false ||
|
||||
if (get_current_uid(handle->conn) == 0 || !chown_needed ||
|
||||
!(fsp->access_mask & SEC_STD_WRITE_OWNER)) {
|
||||
return NT_STATUS_ACCESS_DENIED;
|
||||
}
|
||||
|
Reference in New Issue
Block a user