diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-10-15 18:23:42 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-10-15 20:02:59 +1100 |
commit | c73ba89112dda50e1828e11c87f8006bc4968546 (patch) | |
tree | 2afb5358386782282bf04ad0706ea58574747b12 /source4/ntvfs | |
parent | 387e67d53f7c0479ce29f6dd2a031c1158222491 (diff) | |
download | samba-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')
-rw-r--r-- | source4/ntvfs/posix/pvfs_acl.c | 2 |
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; } |