1
0
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:
Andrew Tridgell 2004-12-30 06:02:54 +00:00 committed by Gerald (Jerry) Carter
parent 5fe51807d6
commit 75e7229476
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}