From: Volker Lendecke Date: Tue, 14 Feb 2023 15:04:00 +0000 (+0100) Subject: vfs: Replace a "== false" with a "!" X-Git-Tag: talloc-2.4.1~1447 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a52b30d9211464566ead2175eb5aa8384fcac13;p=thirdparty%2Fsamba.git vfs: Replace a "== false" with a "!" Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c index 81e1116b20b..fd54d7b2dd6 100644 --- a/source3/modules/vfs_acl_common.c +++ b/source3/modules/vfs_acl_common.c @@ -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; }