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>
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);
if (!set_archive) {
return;
}
- if (fsp->fsp_flags & FSP_POSIX_FLAGS_OPEN) {
- return;
- }
ret = file_set_dosmode(conn,
smb_fname,