From da992be64f39364fbb8bca26e9421c7a36c49ac6 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 29 Nov 2011 16:31:18 -0800 Subject: Fix bug 8636 - When returning an ACL without SECINFO_DACL requested, we still set SEC_DESC_DACL_PRESENT in the type field. Autobuild-User: Jeremy Allison Autobuild-Date: Wed Nov 30 04:59:07 CET 2011 on sn-devel-104 --- source3/modules/vfs_acl_common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/modules') diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c index 799de98520..00ac2a1932 100644 --- a/source3/modules/vfs_acl_common.c +++ b/source3/modules/vfs_acl_common.c @@ -426,9 +426,11 @@ static NTSTATUS get_nt_acl_internal(vfs_handle_struct *handle, psd->group_sid = NULL; } if (!(security_info & SECINFO_DACL)) { + psd->type &= ~SEC_DESC_DACL_PRESENT; psd->dacl = NULL; } if (!(security_info & SECINFO_SACL)) { + psd->type &= ~SEC_DESC_SACL_PRESENT; psd->sacl = NULL; } -- cgit