From: Ralph Boehme Date: Wed, 25 Nov 2020 15:35:11 +0000 (+0100) Subject: smbd: use fdos_mode() in smbd_dirptr_8_3_mode_fn() X-Git-Tag: samba-4.14.0rc1~298 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=180e0a7d9282826e56b1b496a6c1cb68e00ed248;p=thirdparty%2Fsamba.git smbd: use fdos_mode() in smbd_dirptr_8_3_mode_fn() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- 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; }