]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/smbd: call dos_mode_post with fsp
authorNoel Power <noel.power@suse.com>
Thu, 10 Jun 2021 08:45:02 +0000 (09:45 +0100)
committerNoel Power <npower@samba.org>
Fri, 11 Jun 2021 09:30:53 +0000 (09:30 +0000)
Next commit can remove smb_name param from dos_mode_post
signature.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dosmode.c

index 84ee8994a9891d88952f7d1785450103a06b5c52..8686b1547569e923e24ec0dcfb20e615762a450f 100644 (file)
@@ -890,9 +890,9 @@ static void dos_mode_at_vfs_get_dosmode_done(struct tevent_req *subreq)
        }
        if (NT_STATUS_IS_OK(status)) {
                state->dosmode = dos_mode_post(state->dosmode,
-                                              state->dir_fsp->conn,
+                                              state->smb_fname->fsp->conn,
+                                              state->smb_fname->fsp,
                                               NULL,
-                                              state->smb_fname,
                                               __func__);
                tevent_req_done(req);
                return;