From: Jeremy Allison Date: Mon, 12 Jul 2021 22:24:30 +0000 (-0700) Subject: s2: VFS: default. Fix vfswrap_read_dfs_pathat() to use fsp_get_pathref_fd() not fsp_g... X-Git-Tag: talloc-2.3.3~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=106beab5bfe9b82b7af69842a828a18fa0da1b71;p=thirdparty%2Fsamba.git s2: VFS: default. Fix vfswrap_read_dfs_pathat() to use fsp_get_pathref_fd() not fsp_get_io_fd(). We don't need an io fd here, and we only get away with it as we have the assert above: SMB_ASSERT(dirfsp == dirfsp->conn->cwd_fsp); This will be removed next. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 059a38a1320..d1631721bec 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -459,7 +459,7 @@ static NTSTATUS vfswrap_read_dfs_pathat(struct vfs_handle_struct *handle, } } - referral_len = readlinkat(fsp_get_io_fd(dirfsp), + referral_len = readlinkat(fsp_get_pathref_fd(dirfsp), smb_fname->base_name, link_target, bufsize - 1);