From: Ralph Boehme Date: Tue, 31 Oct 2023 11:24:35 +0000 (+0100) Subject: smbd: allow POSIX opens for file_set_dosmode() in rename_internals_fsp() X-Git-Tag: talloc-2.4.2~847 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec143274c7992f92337d0e4b2c6cc9163fa69f49;p=thirdparty%2Fsamba.git smbd: allow POSIX opens for file_set_dosmode() in rename_internals_fsp() As this check was previously added to file_set_dosmode() this is not yet a change in behaviour. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb2_reply.c b/source3/smbd/smb2_reply.c index ce66e9b869f..269482f11ec 100644 --- a/source3/smbd/smb2_reply.c +++ b/source3/smbd/smb2_reply.c @@ -1762,7 +1762,6 @@ NTSTATUS rename_internals_fsp(connection_struct *conn, smb_fname_dst); if (!fsp->fsp_flags.is_directory && - !(fsp->posix_flags & FSP_POSIX_FLAGS_PATHNAMES) && (lp_map_archive(SNUM(conn)) || lp_store_dos_attributes(SNUM(conn)))) {