From 1c60b516a1dbee862226ff9ce6da482d44234f70 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Fri, 22 Jan 2021 14:49:01 +0100 Subject: [PATCH] smbd: use real dirfsp for SMB_VFS_CREATE_DFS_PATHAT() in create_msdfs_link() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/msdfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index aa88e8fd417..dbdca66a530 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -1421,8 +1421,8 @@ bool create_msdfs_link(const struct junction_map *jucn, } status = SMB_VFS_CREATE_DFS_PATHAT(conn, - conn->cwd_fsp, - smb_fname, + parent_fname->fsp, + at_fname, jucn->referral_list, jucn->referral_count); if (!NT_STATUS_IS_OK(status)) { @@ -1436,8 +1436,8 @@ bool create_msdfs_link(const struct junction_map *jucn, } } status = SMB_VFS_CREATE_DFS_PATHAT(conn, - conn->cwd_fsp, - smb_fname, + parent_fname->fsp, + at_fname, jucn->referral_list, jucn->referral_count); if (!NT_STATUS_IS_OK(status)) {