smbd: Add parentheses for easier readability
authorVolker Lendecke <vl@samba.org>
Wed, 31 Jan 2024 16:16:04 +0000 (17:16 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 12 Mar 2024 13:31:31 +0000 (13:31 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/smbd/dosmode.c

index 9f7897a7cf545fc345bc33c61917165e4efa2a12..4ae08f38dcfabed2e8052a756c112d957c11f5a1 100644 (file)
@@ -919,7 +919,7 @@ int file_set_dosmode(connection_struct *conn,
                return -1;
        }
 
-       if (smb_fname->fsp->posix_flags & FSP_POSIX_FLAGS_OPEN &&
+       if ((smb_fname->fsp->posix_flags & FSP_POSIX_FLAGS_OPEN) &&
            !lp_store_dos_attributes(SNUM(conn)))
        {
                return 0;