From: Ralph Boehme Date: Mon, 5 Aug 2019 09:11:14 +0000 (+0200) Subject: s3:smbd: Fix sync dosmode fallback in async dosmode codepath X-Git-Tag: tdb-1.4.2~328 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d4aa6e867044e6b58b45acde32ac35e1d0a7765;p=thirdparty%2Fsamba.git s3:smbd: Fix sync dosmode fallback in async dosmode codepath 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 --- 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; }