summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-15 18:23:42 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-15 20:02:59 +1100
commitc73ba89112dda50e1828e11c87f8006bc4968546 (patch)
tree2afb5358386782282bf04ad0706ea58574747b12 /source4/ntvfs/posix
parent387e67d53f7c0479ce29f6dd2a031c1158222491 (diff)
downloadsamba-c73ba89112dda50e1828e11c87f8006bc4968546.tar.gz
samba-c73ba89112dda50e1828e11c87f8006bc4968546.tar.bz2
samba-c73ba89112dda50e1828e11c87f8006bc4968546.zip
s4-pvfs: fixed handling of SEC_FLAG_MAXIMUM_ALLOWED
The CREATEX_ACCESS test shows that this is used as a bit test, not a equality test
Diffstat (limited to 'source4/ntvfs/posix')
-rw-r--r--source4/ntvfs/posix/pvfs_acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c
index ad7ac5a749..7a204b4d43 100644
--- a/source4/ntvfs/posix/pvfs_acl.c
+++ b/source4/ntvfs/posix/pvfs_acl.c
@@ -516,7 +516,7 @@ NTSTATUS pvfs_access_check_unix(struct pvfs_state *pvfs,
max_bits |= SEC_STD_ALL;
}
- if (*access_mask == SEC_FLAG_MAXIMUM_ALLOWED) {
+ if (*access_mask & SEC_FLAG_MAXIMUM_ALLOWED) {
*access_mask = max_bits;
return NT_STATUS_OK;
}