]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs: Replace a "== false" with a "!"
authorVolker Lendecke <vl@samba.org>
Tue, 14 Feb 2023 15:04:00 +0000 (16:04 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 9 Mar 2023 18:10:33 +0000 (18:10 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_acl_common.c

index 81e1116b20b02551b9c948411415f118b1052a2c..fd54d7b2dd68f89410d3f7cd57adac2a75013332 100644 (file)
@@ -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;
        }