From: Jeremy Allison Date: Wed, 17 Mar 2021 01:26:43 +0000 (-0700) Subject: s3: VFS: default: vfswrap_create_dfs_pathat() isn't restricted to dirfsp->conn->cwd_f... X-Git-Tag: tevent-0.11.0~1435 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4af9868142529187a87b30cd522a144ead76cc8c;p=thirdparty%2Fsamba.git s3: VFS: default: vfswrap_create_dfs_pathat() isn't restricted to dirfsp->conn->cwd_fsp anymore. Signed-off-by: Jeremy Allison Reviewed-by: Noel Power --- diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index e48deb022a7..9a2c13d743b 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -386,8 +386,6 @@ static NTSTATUS vfswrap_create_dfs_pathat(struct vfs_handle_struct *handle, int ret; char *msdfs_link = NULL; - SMB_ASSERT(dirfsp == dirfsp->conn->cwd_fsp); - /* Form the msdfs_link contents */ msdfs_link = msdfs_link_string(frame, reflist, @@ -397,7 +395,7 @@ static NTSTATUS vfswrap_create_dfs_pathat(struct vfs_handle_struct *handle, } ret = symlinkat(msdfs_link, - fsp_get_io_fd(dirfsp), + fsp_get_pathref_fd(dirfsp), smb_fname->base_name); if (ret == 0) { status = NT_STATUS_OK;