summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-02-06 10:31:22 -0800
committerJeremy Allison <jra@samba.org>2008-02-06 10:31:22 -0800
commita33236f4aa2d90ca7293c627d9e34d855fea65e4 (patch)
tree96dd631cb8da87bd11829c1b835b79cc3632e0c1 /source3
parentb7989e2ac76f3cffb30d2b41620a8f7d97d2b70b (diff)
downloadsamba-a33236f4aa2d90ca7293c627d9e34d855fea65e4.tar.gz
samba-a33236f4aa2d90ca7293c627d9e34d855fea65e4.tar.bz2
samba-a33236f4aa2d90ca7293c627d9e34d855fea65e4.zip
Make operator precedence very clear.
Jeremy. (This used to be commit 4f125110cfe25b499eb628b5b08fdb610a5d972c)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/dosmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c
index f068f1f655..a2e617c117 100644
--- a/source3/smbd/dosmode.c
+++ b/source3/smbd/dosmode.c
@@ -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));