From: Ralph Boehme Date: Mon, 19 Oct 2020 18:36:19 +0000 (+0200) Subject: smbd: use fdos_mode() in reply_ntcreate_and_X() X-Git-Tag: samba-4.14.0rc1~290 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec9afe04d81dc088922dc32b8355e36e28ec5ccf;p=thirdparty%2Fsamba.git smbd: use fdos_mode() in reply_ntcreate_and_X() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- 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; }