Make operator precedence very clear.
authorJeremy Allison <jra@samba.org>
Wed, 6 Feb 2008 18:31:22 +0000 (10:31 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 6 Feb 2008 18:31:22 +0000 (10:31 -0800)
Jeremy.
(This used to be commit 4f125110cfe25b499eb628b5b08fdb610a5d972c)

source3/smbd/dosmode.c

index f068f1f65533d57ceca40db9e04bafdcf222a4bf..a2e617c117d95be2c02f3358438ddfd7228441c6 100644 (file)
@@ -422,7 +422,7 @@ int file_set_dosmode(connection_struct *conn, const char *fname,
        uint32_t old_mode;
 
        /* We only allow READONLY|HIDDEN|SYSTEM|DIRECTORY|ARCHIVE here. */
-       dosmode &= SAMBA_ATTRIBUTES_MASK | FILE_ATTRIBUTE_OFFLINE;
+       dosmode &= (SAMBA_ATTRIBUTES_MASK | FILE_ATTRIBUTE_OFFLINE);
 
        DEBUG(10,("file_set_dosmode: setting dos mode 0x%x on file %s\n", dosmode, fname));