From: Ralph Boehme Date: Mon, 19 Oct 2020 18:48:43 +0000 (+0200) Subject: smbd: use fdos_mode() in copy_file() X-Git-Tag: samba-4.14.0rc1~276 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96a882655b8e76285f3461ada931fd5a94f2e4a4;p=thirdparty%2Fsamba.git smbd: use fdos_mode() in copy_file() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 2eae01bedf9..5dd2c20e8cf 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -8557,7 +8557,7 @@ NTSTATUS copy_file(TALLOC_CTX *ctx, goto out; } - dosattrs = dos_mode(conn, smb_fname_src); + dosattrs = fdos_mode(fsp1); if (SMB_VFS_STAT(conn, smb_fname_dst_tmp) == -1) { ZERO_STRUCTP(&smb_fname_dst_tmp->st);