summaryrefslogtreecommitdiffstats
path: root/source3/include/smb.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-10-19 23:56:21 +0000
committerJeremy Allison <jra@samba.org>2001-10-19 23:56:21 +0000
commit07f54cb59270e2c3168ab2bb3e73e7a8d8563843 (patch)
tree4e59ebf3fc8381265966b9d4431e0b4ab0f14b70 /source3/include/smb.h
parentbc0643b47c74eb04de37d1247249159a86f3579f (diff)
downloadsamba-07f54cb59270e2c3168ab2bb3e73e7a8d8563843.tar.gz
samba-07f54cb59270e2c3168ab2bb3e73e7a8d8563843.tar.xz
samba-07f54cb59270e2c3168ab2bb3e73e7a8d8563843.zip
Ensure we mask off deny modes correctly on being set (this shouldn't have
caused problems but is tidier). Fix debug statement in locking.c Jeremy. (This used to be commit eac6bbd24ebf00b35e50953bc11186111dc39059)
Diffstat (limited to 'source3/include/smb.h')
-rw-r--r--source3/include/smb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index fba08aed43..c25b48dde2 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -107,7 +107,7 @@ implemented */
#define GET_OPEN_MODE(x) ((x) & OPEN_MODE_MASK)
#define SET_OPEN_MODE(x) ((x) & OPEN_MODE_MASK)
#define GET_DENY_MODE(x) (((x)>>SHARE_MODE_SHIFT) & SHARE_MODE_MASK)
-#define SET_DENY_MODE(x) ((x)<<SHARE_MODE_SHIFT)
+#define SET_DENY_MODE(x) (((x) & SHARE_MODE_MASK) <<SHARE_MODE_SHIFT)
/* Sync on open file (not sure if used anymore... ?) */
#define FILE_SYNC_OPENMODE (1<<14)