]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use fdos_mode() in dos_mode_at_vfs_get_dosmode_done()
authorRalph Boehme <slow@samba.org>
Mon, 19 Oct 2020 19:10:40 +0000 (21:10 +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/dosmode.c

index 4b90ca87a12c29c309f71495298cd6a99bbbbba4..5015b5f97323f6ced5c3f843706cc3c1ff38c90b 100644 (file)
@@ -949,7 +949,7 @@ static void dos_mode_at_vfs_get_dosmode_done(struct tevent_req *subreq)
                return;
        }
 
-       state->dosmode = dos_mode(state->dir_fsp->conn, smb_path);
+       state->dosmode = fdos_mode(state->smb_fname->fsp);
        tevent_req_done(req);
        return;
 }