From 6dcb87f62dfd1624ae53cf5e84196cd1f2579fb5 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 5 Aug 2019 11:11:14 +0200 Subject: [PATCH] s3:smbd: Fix sync dosmode fallback in async dosmode codepath MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BUG: https://bugzilla.samba.org/show_bug.cgi?id=14070 RN: Fix sync dosmode fallback in async dosmode codepath Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Tue Aug 6 15:40:18 UTC 2019 on sn-devel-184 (cherry picked from commit 5d4aa6e867044e6b58b45acde32ac35e1d0a7765) --- source3/smbd/dosmode.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index d722c022fe9..bdcdda69ac8 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -917,7 +917,11 @@ static void dos_mode_at_vfs_get_dosmode_done(struct tevent_req *subreq) return; } - smb_path = synthetic_smb_fname(state, path, NULL, NULL, 0); + smb_path = synthetic_smb_fname(state, + path, + NULL, + &state->smb_fname->st, + 0); if (tevent_req_nomem(path, req)) { return; } -- 2.21.0