summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sharpe <realrichardsharpe@gmail.com>2012-03-30 22:02:25 -0700
committerRichard Sharpe <sharpe@samba.org>2012-03-31 09:34:35 +0200
commit7d3c26e8cfcffb519990d5d2d70af3307e34c15f (patch)
tree3162e9257efd93c99be764474c1d8fbd3211a3de
parent786cb132e8f27e58e3ac90889f6ea1c997441bd6 (diff)
downloadsamba-7d3c26e8cfcffb519990d5d2d70af3307e34c15f.tar.gz
samba-7d3c26e8cfcffb519990d5d2d70af3307e34c15f.tar.bz2
samba-7d3c26e8cfcffb519990d5d2d70af3307e34c15f.zip
Make sure we claim that a DACL or SACL is present if the SD says so
Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Sat Mar 31 09:34:36 CEST 2012 on sn-devel-104
-rw-r--r--source3/libsmb/clisecdesc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clisecdesc.c b/source3/libsmb/clisecdesc.c
index aef3432009..04f661cc82 100644
--- a/source3/libsmb/clisecdesc.c
+++ b/source3/libsmb/clisecdesc.c
@@ -92,9 +92,9 @@ NTSTATUS cli_set_secdesc(struct cli_state *cli, uint16_t fnum,
SIVAL(param, 0, fnum);
- if (sd->dacl)
+ if (sd->dacl || (sd->type & SEC_DESC_DACL_PRESENT))
sec_info |= SECINFO_DACL;
- if (sd->sacl)
+ if (sd->sacl || (sd->type & SEC_DESC_SACL_PRESENT))
sec_info |= SECINFO_SACL;
if (sd->owner_sid)
sec_info |= SECINFO_OWNER;