This will need an extra dirfsp parameter in future, but this
is the easiest change for now.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
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));
}
/*****************************************************************