mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Fix from Tom.Lackemann@falconstor.com to correctly set the flags based
on the security entries sent.
Jeremy.
(This used to be commit 45953d59f7
)
This commit is contained in:
parent
2d7a8480cf
commit
1263c6e36c
@ -79,6 +79,7 @@ BOOL cli_set_secdesc(struct cli_state *cli, int fnum, SEC_DESC *sd)
|
||||
char param[8];
|
||||
char *rparam=NULL, *rdata=NULL;
|
||||
int rparam_count=0, rdata_count=0;
|
||||
uint32 sec_info = 0;
|
||||
TALLOC_CTX *mem_ctx;
|
||||
prs_struct pd;
|
||||
BOOL ret = False;
|
||||
@ -97,7 +98,14 @@ BOOL cli_set_secdesc(struct cli_state *cli, int fnum, SEC_DESC *sd)
|
||||
}
|
||||
|
||||
SIVAL(param, 0, fnum);
|
||||
SSVAL(param, 4, 0x7);
|
||||
|
||||
if (sd->off_dacl)
|
||||
sec_info |= DACL_SECURITY_INFORMATION;
|
||||
if (sd->off_owner_sid)
|
||||
sec_info |= OWNER_SECURITY_INFORMATION;
|
||||
if (sd->off_grp_sid)
|
||||
sec_info |= GROUP_SECURITY_INFORMATION;
|
||||
SSVAL(param, 4, sec_info);
|
||||
|
||||
if (!cli_send_nt_trans(cli,
|
||||
NT_TRANSACT_SET_SECURITY_DESC,
|
||||
|
Loading…
Reference in New Issue
Block a user