diff options
author | Jeremy Allison <jra@samba.org> | 2020-02-11 13:35:53 -0800 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2020-02-18 21:08:33 +0000 |
commit | 07a3cd56cddfc0e27a75ca76e556e2fdb18c3291 (patch) | |
tree | 09c52c31f23e40769cadf1f00e48588da7b040c2 /source3/smbd | |
parent | 0528584482f798753d636675da778917f50ca845 (diff) | |
download | samba-07a3cd56cddfc0e27a75ca76e556e2fdb18c3291.tar.gz |
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>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/msdfs.c | 7 |
1 files changed, 5 insertions, 2 deletions
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)); } /***************************************************************** |