mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Ensure we Correctly set fsp->is_directory before dealing with ACLs.
Reviewed by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
6f47497610
commit
dc05ab8e19
@ -1524,7 +1524,7 @@ static NTSTATUS cmd_set_nt_acl(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int a
|
||||
fsp->print_file = NULL;
|
||||
fsp->modified = False;
|
||||
fsp->sent_oplock_break = NO_BREAK_SENT;
|
||||
fsp->is_directory = False;
|
||||
fsp->is_directory = S_ISDIR(smb_fname->st.st_ex_mode);
|
||||
|
||||
|
||||
sd = sddl_decode(talloc_tos(), argv[2], get_global_sam_sid());
|
||||
|
Loading…
x
Reference in New Issue
Block a user