mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r4409: fixed handling of zero access masks for the POSITION_INFORMATION query/set levels
This commit is contained in:
parent
5fe51807d6
commit
75e7229476
@ -324,7 +324,7 @@ NTSTATUS pvfs_qfileinfo(struct ntvfs_module_context *ntvfs,
|
||||
h = f->handle;
|
||||
|
||||
access_needed = pvfs_fileinfo_access(info->generic.level);
|
||||
if (!(f->access_mask & access_needed)) {
|
||||
if ((f->access_mask & access_needed) != access_needed) {
|
||||
return NT_STATUS_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
|
@ -249,7 +249,7 @@ NTSTATUS pvfs_setfileinfo(struct ntvfs_module_context *ntvfs,
|
||||
h = f->handle;
|
||||
|
||||
access_needed = pvfs_setfileinfo_access(info->generic.level);
|
||||
if (!(f->access_mask & access_needed)) {
|
||||
if ((f->access_mask & access_needed) != access_needed) {
|
||||
return NT_STATUS_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user