From ec9afe04d81dc088922dc32b8355e36e28ec5ccf Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 19 Oct 2020 20:36:19 +0200 Subject: [PATCH] smbd: use fdos_mode() in reply_ntcreate_and_X() 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 57b7f2f807b..7a12f885b15 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -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; } -- 2.47.3