mirror of
https://github.com/samba-team/samba.git
synced 2025-03-26 18:50:30 +03:00
s3: smbd: Ensure we only call get_acl_group_bits() with a valid smb_fname->fsp.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
91cd0e87f9
commit
d2ff049ba9
@ -959,8 +959,10 @@ int file_set_dosmode(connection_struct *conn,
|
||||
|
||||
unixmode = smb_fname->st.st_ex_mode;
|
||||
|
||||
get_acl_group_bits(conn, smb_fname,
|
||||
if (smb_fname->fsp != NULL) {
|
||||
get_acl_group_bits(conn, smb_fname,
|
||||
&smb_fname->st.st_ex_mode);
|
||||
}
|
||||
|
||||
if (S_ISDIR(smb_fname->st.st_ex_mode))
|
||||
dosmode |= FILE_ATTRIBUTE_DIRECTORY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user