r4412: SEC_FILE_READ_ATTRIBUTE is always granted, even if not requested. This was...
authorAndrew Tridgell <tridge@samba.org>
Thu, 30 Dec 2004 07:10:31 +0000 (07:10 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:07:45 +0000 (13:07 -0500)
in the full ACL code, but not in the unix access check code, which meant that qfileinfo
was failing for some parameters
(This used to be commit 96d017e521f5a996a7a274682838855d077834bc)

source4/ntvfs/posix/pvfs_acl.c

index 6741fb851d27e56f2165b6a803a72f4ce3090d5b..4cc22b0918d934d755bcf333cedada1b36275a67 100644 (file)
@@ -306,6 +306,8 @@ NTSTATUS pvfs_access_check_unix(struct pvfs_state *pvfs,
                return NT_STATUS_ACCESS_DENIED;
        }
 
+       *access_mask |= SEC_FILE_READ_ATTRIBUTE;
+
        return NT_STATUS_OK;
 }