From: Ralph Boehme Date: Mon, 19 Oct 2020 18:59:09 +0000 (+0200) Subject: smbd: use fdos_mode() in smbd_smb2_create_after_exec() X-Git-Tag: samba-4.14.0rc1~273 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05b31b47b1b68f3237143b37520d128fda3e2688;p=thirdparty%2Fsamba.git smbd: use fdos_mode() in smbd_smb2_create_after_exec() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index dbbf00dd905..9e8d9853266 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -1317,8 +1317,7 @@ static void smbd_smb2_create_after_exec(struct tevent_req *req) DEBUG(10, ("smbd_smb2_create_send: " "response construction phase\n")); - state->out_file_attributes = dos_mode(state->result->conn, - state->result->fsp_name); + state->out_file_attributes = fdos_mode(state->result); if (state->mxac != NULL) { NTTIME last_write_time;