git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
786cb13
)
Make sure we claim that a DACL or SACL is present if the SD says so
author
Richard Sharpe
<realrichardsharpe@gmail.com>
Sat, 31 Mar 2012 05:02:25 +0000
(22:02 -0700)
committer
Richard Sharpe
<sharpe@samba.org>
Sat, 31 Mar 2012 07:34:35 +0000
(09:34 +0200)
Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Sat Mar 31 09:34:36 CEST 2012 on sn-devel-104
source3/libsmb/clisecdesc.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clisecdesc.c
b/source3/libsmb/clisecdesc.c
index aef3432009ec4c4468cecc06ee91860172466a3a..04f661cc8207695dd3c4bfa2ee893ffb694604d8 100644
(file)
--- 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;