From: Jeremy Allison Date: Tue, 11 Feb 2020 21:35:53 +0000 (-0800) Subject: s3: DFS: Change simple is_msdfs_link() call to use SMB_VFS_READ_DFS_PATHAT(). X-Git-Tag: ldb-2.1.1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07a3cd56cddfc0e27a75ca76e556e2fdb18c3291;p=thirdparty%2Fsamba.git s3: DFS: Change simple is_msdfs_link() call to use SMB_VFS_READ_DFS_PATHAT(). This will need an extra dirfsp parameter in future, but this is the easiest change for now. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index d48b8952d38..fa8272f73bb 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -699,10 +699,13 @@ static bool is_msdfs_link_internal(TALLOC_CTX *ctx, bool is_msdfs_link(connection_struct *conn, struct smb_filename *smb_fname) { - return is_msdfs_link_internal(talloc_tos(), - conn, + NTSTATUS status = SMB_VFS_READ_DFS_PATHAT(conn, + talloc_tos(), + conn->cwd_fsp, smb_fname, + NULL, NULL); + return (NT_STATUS_IS_OK(status)); } /*****************************************************************