From 758d61201f7b51da6ce74aee2d18c5125d72522e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 23 May 2012 13:09:40 +0200 Subject: s3:smbd/msdfs: pass 'allow_broken_path' to get_referred_path() Note the DCERPC code should not be smb2 specific! I wonder why this is at all smb2 specific... metze --- source3/modules/vfs_default.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/modules/vfs_default.c') diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 887dbcb9af..8908508af4 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -22,6 +22,7 @@ #include "system/time.h" #include "system/filesys.h" #include "smbd/smbd.h" +#include "smbd/globals.h" #include "ntioctl.h" #include "smbprofile.h" #include "../libcli/security/security.h" @@ -209,7 +210,8 @@ static NTSTATUS vfswrap_get_dfs_referrals(struct vfs_handle_struct *handle, } /* The following call can change cwd. */ - status = get_referred_path(r, pathnamep, handle->conn->sconn, + status = get_referred_path(r, pathnamep, + !handle->conn->sconn->using_smb2, junction, &consumedcnt, &self_referral); if (!NT_STATUS_IS_OK(status)) { vfs_ChDir(handle->conn, handle->conn->connectpath); -- cgit