mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
smbd: move POSIX check from possibly_set_archive() to file_set_dosmode()
No change in behaviour. Move the check to the more low-level function file_set_dosmode() to ensure all callers use this consistently. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
b3c6c677a7
commit
4d1b4d893d
@ -925,6 +925,10 @@ int file_set_dosmode(connection_struct *conn,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (fsp->fsp_flags & FSP_POSIX_FLAGS_OPEN) {
|
||||
return;
|
||||
}
|
||||
|
||||
unixmode = smb_fname->st.st_ex_mode;
|
||||
|
||||
get_acl_group_bits(conn, smb_fname->fsp, &smb_fname->st.st_ex_mode);
|
||||
|
@ -3752,9 +3752,6 @@ static void possibly_set_archive(struct connection_struct *conn,
|
||||
if (!set_archive) {
|
||||
return;
|
||||
}
|
||||
if (fsp->fsp_flags & FSP_POSIX_FLAGS_OPEN) {
|
||||
return;
|
||||
}
|
||||
|
||||
ret = file_set_dosmode(conn,
|
||||
smb_fname,
|
||||
|
Loading…
x
Reference in New Issue
Block a user