1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

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 <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2020-02-11 13:35:53 -08:00 committed by Ralph Boehme
parent 0528584482
commit 07a3cd56cd

View File

@ -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));
}
/*****************************************************************