From: Ralph Boehme Date: Mon, 19 Oct 2020 14:40:18 +0000 (+0200) Subject: smbd: use fdos_mode() in smbd_dirptr_lanman2_mode_fn() X-Git-Tag: samba-4.14.0rc1~299 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06906b1d1f6b9c98008ac0480f7fb55befc09929;p=thirdparty%2Fsamba.git smbd: use fdos_mode() in smbd_dirptr_lanman2_mode_fn() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 83f2fa06a5f..f87d1fe892d 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -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;