s3:smbd: Fix sync dosmode fallback in async dosmode codepath
authorRalph Boehme <slow@samba.org>
Mon, 5 Aug 2019 09:11:14 +0000 (11:11 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 6 Aug 2019 15:40:18 +0000 (15:40 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14070
RN: Fix sync dosmode fallback in async dosmode codepath

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Aug  6 15:40:18 UTC 2019 on sn-devel-184

source3/smbd/dosmode.c

index d722c022fe93f033d58d4b783a5c85177bed2d95..bdcdda69ac8a8d8af8a8b84ebe67db99f06bfd6e 100644 (file)
@@ -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;
        }