From: Ralph Boehme Date: Mon, 19 Oct 2020 18:41:43 +0000 (+0200) Subject: smbd: use fdos_mode() in reply_open() X-Git-Tag: samba-4.14.0rc1~284 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=594bfdea81bbf64da0b3eb2dd9aa85c250f1d1f7;p=thirdparty%2Fsamba.git smbd: use fdos_mode() in reply_open() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 832e4486156..43b9b8905bd 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -2273,7 +2273,7 @@ void reply_open(struct smb_request *req) smb_fname = fsp->fsp_name; size = smb_fname->st.st_ex_size; - fattr = dos_mode(conn, smb_fname); + fattr = fdos_mode(fsp); mtime = convert_timespec_to_time_t(smb_fname->st.st_ex_mtime);