git.samba.org
/
kai
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix bug 8636 - When returning an ACL without SECINFO_DACL requested, we still set...
[kai/samba.git]
/
source3
/
smbd
/
nttrans.c
diff --git
a/source3/smbd/nttrans.c
b/source3/smbd/nttrans.c
index 05d42a2e89019ea64a382a0cd3fcc8b389e235ae..ddabdda4d6e7b9c54b1d5284cdd5011b7ad3ed22 100644
(file)
--- a/
source3/smbd/nttrans.c
+++ b/
source3/smbd/nttrans.c
@@
-1900,9
+1900,11
@@
NTSTATUS smbd_do_query_security_desc(connection_struct *conn,
psd->group_sid = NULL;
}
if (!(security_info_wanted & SECINFO_DACL)) {
+ psd->type &= ~SEC_DESC_DACL_PRESENT;
psd->dacl = NULL;
}
if (!(security_info_wanted & SECINFO_SACL)) {
+ psd->type &= ~SEC_DESC_SACL_PRESENT;
psd->sacl = NULL;
}