From: Ralph Boehme Date: Mon, 19 Oct 2020 18:38:27 +0000 (+0200) Subject: smbd: use fdos_mode() in copy_internals() X-Git-Tag: samba-4.14.0rc1~288 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7386dc737c047a7a8ee63b42d708d557e14ac08d;p=thirdparty%2Fsamba.git smbd: use fdos_mode() in copy_internals() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index ad69957ca13..c74cfa48c52 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -1569,7 +1569,7 @@ static NTSTATUS copy_internals(TALLOC_CTX *ctx, } /* Ensure attributes match. */ - fattr = dos_mode(conn, smb_fname_src); + fattr = fdos_mode(smb_fname_src->fsp); if ((fattr & ~attrs) & (FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_SYSTEM)) { status = NT_STATUS_NO_SUCH_FILE; goto out;