summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-06-02 23:29:16 +0200
committerGünther Deschner <gd@samba.org>2010-06-03 10:59:54 +0200
commite24a59f932897888cadae31469366663aca1a414 (patch)
tree3b8bf82f734b6c9126e86ca749df05205fadfb7c /source3/smbd
parent630c27bdad32086f16dbafdeab94d34fbc3b9b5e (diff)
downloadsamba-e24a59f932897888cadae31469366663aca1a414.tar.gz
samba-e24a59f932897888cadae31469366663aca1a414.tar.bz2
samba-e24a59f932897888cadae31469366663aca1a414.zip
s3-security: use shared SECINFO_SACL define.
Guenther
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/nttrans.c2
-rw-r--r--source3/smbd/open.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index 85b005f376..1b34b6ce80 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -1806,7 +1806,7 @@ NTSTATUS smbd_do_query_security_desc(connection_struct *conn,
/* If the SACL/DACL is NULL, but was requested, we mark that it is
* present in the reply to match Windows behavior */
if (psd->sacl == NULL &&
- security_info_wanted & SACL_SECURITY_INFORMATION)
+ security_info_wanted & SECINFO_SACL)
psd->type |= SEC_DESC_SACL_PRESENT;
if (psd->dacl == NULL &&
security_info_wanted & DACL_SECURITY_INFORMATION)
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 8c9df72cbc..f6905eaaa1 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -3212,7 +3212,7 @@ static NTSTATUS create_file_unixpath(connection_struct *conn,
if (sec_info_sent & (SECINFO_OWNER|
SECINFO_GROUP|
DACL_SECURITY_INFORMATION|
- SACL_SECURITY_INFORMATION)) {
+ SECINFO_SACL)) {
status = SMB_VFS_FSET_NT_ACL(fsp, sec_info_sent, sd);
}