mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
s3/utils: Detect (and report) failure to parse sddl
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
d0d026bdb5
commit
b319769ebd
@ -2108,6 +2108,11 @@ static int cacl_restore(struct cli_state *cli,
|
||||
}
|
||||
} else {
|
||||
entries[index].sd = sddl_decode(lines, lines[i], sid);
|
||||
if(entries[index].sd == NULL) {
|
||||
DBG_ERR("could not decode '%s'\n", lines[i]);
|
||||
result = EXIT_FAILED;
|
||||
goto out;
|
||||
}
|
||||
entries[index].sd->type |=
|
||||
SEC_DESC_DACL_AUTO_INHERIT_REQ;
|
||||
entries[index].sd->type |= SEC_DESC_SACL_AUTO_INHERITED;
|
||||
|
Reference in New Issue
Block a user