]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use fdos_mode() in smbd_smb2_create_after_exec()
authorRalph Boehme <slow@samba.org>
Mon, 19 Oct 2020 18:59:09 +0000 (20:59 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:32 +0000 (09:08 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_create.c

index dbbf00dd90530e4b1ab49f7a7ffbab193df60687..9e8d98532660b9cdf7432b7dd2b91e9d97aba6a9 100644 (file)
@@ -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;