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

index 83f2fa06a5f57f77b9a1bedfa6d185c7ab3d9101..f87d1fe892d9dbe3234ab7f098e84f7f4aa995b3 100644 (file)
@@ -1791,7 +1791,8 @@ static bool smbd_dirptr_lanman2_mode_fn(TALLOC_CTX *ctx,
        if (ms_dfs_link) {
                mode = dos_mode_msdfs(state->conn, smb_fname);
        } else if (get_dosmode) {
-               mode = dos_mode(state->conn, smb_fname);
+               mode = fdos_mode(smb_fname->fsp);
+               smb_fname->st = smb_fname->fsp->fsp_name->st;
        }
 
        *_mode = mode;