From 180e0a7d9282826e56b1b496a6c1cb68e00ed248 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Wed, 25 Nov 2020 16:35:11 +0100 Subject: [PATCH] smbd: use fdos_mode() in smbd_dirptr_8_3_mode_fn() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/dir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 760fc315db4..ae92fa08161 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -1135,7 +1135,8 @@ static bool smbd_dirptr_8_3_mode_fn(TALLOC_CTX *ctx, } if (get_dosmode) { - *_mode = dos_mode(conn, smb_fname); + *_mode = fdos_mode(smb_fname->fsp); + smb_fname->st = smb_fname->fsp->fsp_name->st; } return true; } -- 2.11.4.GIT