]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use fdos_mode() in reply_ntcreate_and_X()
authorRalph Boehme <slow@samba.org>
Mon, 19 Oct 2020 18:36:19 +0000 (20:36 +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 57b7f2f807ba931d89d16aebc42fbee801a38a85..7a12f885b150e566fbe433934503dd0517a0c1bb 100644 (file)
@@ -747,7 +747,7 @@ void reply_ntcreate_and_X(struct smb_request *req)
        }
        p += 4;
 
-       fattr = dos_mode(conn, smb_fname);
+       fattr = fdos_mode(fsp);
        if (fattr == 0) {
                fattr = FILE_ATTRIBUTE_NORMAL;
        }