]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use fdos_mode() in copy_internals()
authorRalph Boehme <slow@samba.org>
Mon, 19 Oct 2020 18:38:27 +0000 (20:38 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:31 +0000 (09:08 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/nttrans.c

index ad69957ca134a953d88657032ffaa531bc6dd2f6..c74cfa48c521a7c4c088b712f9358c599c989e76 100644 (file)
@@ -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;