From 7d3c26e8cfcffb519990d5d2d70af3307e34c15f Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Fri, 30 Mar 2012 22:02:25 -0700 Subject: Make sure we claim that a DACL or SACL is present if the SD says so Autobuild-User: Richard Sharpe Autobuild-Date: Sat Mar 31 09:34:36 CEST 2012 on sn-devel-104 --- source3/libsmb/clisecdesc.c | 4 ++-- 1 file 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; -- cgit