summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/pvfs_acl.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-30 07:10:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:45 -0500
commitef179fddb3c4feae9d048034c035cbda71457ccc (patch)
tree29d0a1afbaf4b4dfda3774cee5ddd99f0f07214b /source4/ntvfs/posix/pvfs_acl.c
parent373bca5bcd9555acda8ecf526c82f136c2312ee8 (diff)
downloadsamba-ef179fddb3c4feae9d048034c035cbda71457ccc.tar.gz
samba-ef179fddb3c4feae9d048034c035cbda71457ccc.tar.bz2
samba-ef179fddb3c4feae9d048034c035cbda71457ccc.zip
r4412: SEC_FILE_READ_ATTRIBUTE is always granted, even if not requested. This was being done
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)
Diffstat (limited to 'source4/ntvfs/posix/pvfs_acl.c')
-rw-r--r--source4/ntvfs/posix/pvfs_acl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c
index 6741fb851d..4cc22b0918 100644
--- a/source4/ntvfs/posix/pvfs_acl.c
+++ b/source4/ntvfs/posix/pvfs_acl.c
@@ -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;
}