From 7386dc737c047a7a8ee63b42d708d557e14ac08d Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 19 Oct 2020 20:38:27 +0200 Subject: [PATCH] smbd: use fdos_mode() in copy_internals() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/nttrans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3