summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-03-25 14:41:56 +0000
committerGerald Carter <jerry@samba.org>2004-03-25 14:41:56 +0000
commit073d1c1964985ce69a35780c1eee91a76bc1400b (patch)
tree03d4943863bd2e630f70afb8d93532ef032a4da5
parent78502504451b9ea21a8f4035a3e7e9626a6b2108 (diff)
downloadsamba-073d1c1964985ce69a35780c1eee91a76bc1400b.tar.gz
samba-073d1c1964985ce69a35780c1eee91a76bc1400b.tar.bz2
samba-073d1c1964985ce69a35780c1eee91a76bc1400b.zip
jra's patch -- fix anonymous self referral code to check that a share is an msdfs root first
(This used to be commit 641c2acd92b358fab4441071df411adbbd934ae8)
-rw-r--r--source3/msdfs/msdfs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/msdfs/msdfs.c b/source3/msdfs/msdfs.c
index 2df5fcf4f5..2ac7bda175 100644
--- a/source3/msdfs/msdfs.c
+++ b/source3/msdfs/msdfs.c
@@ -481,6 +481,12 @@ BOOL get_referred_path(char *pathname, struct junction_map *jucn,
return False;
}
+ if (!lp_msdfs_root(snum)) {
+ DEBUG(3,("get_referred_path: .%s. in dfs path %s is not a dfs root.\n",
+ dp.servicename, pathname));
+ goto out;
+ }
+
/*
* Self referrals are tested with a anonymous IPC connection and
* a GET_DFS_REFERRAL call to \\server\share. (which means dp.reqpath[0] points
@@ -496,12 +502,6 @@ BOOL get_referred_path(char *pathname, struct junction_map *jucn,
if (!create_conn_struct(conn, snum, conn_path))
return False;
- if (!lp_msdfs_root(SNUM(conn))) {
- DEBUG(3,("get_referred_path: .%s. in dfs path %s is not a dfs root.\n",
- dp.servicename, pathname));
- goto out;
- }
-
if (*lp_msdfs_proxy(snum) != '\0') {
struct referral* ref;
jucn->referral_count = 1;