summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-03-22 22:15:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:51 -0500
commitbf26a7632e438199ab10c9557f7d018e19705604 (patch)
tree01b95ace2352da64b5990b693f06f02fb83c0901 /source3
parent8a2b73a58a011945bb195823ba2696a6182b2358 (diff)
downloadsamba-bf26a7632e438199ab10c9557f7d018e19705604.tar.gz
samba-bf26a7632e438199ab10c9557f7d018e19705604.tar.bz2
samba-bf26a7632e438199ab10c9557f7d018e19705604.zip
r21942: Hoist by our own petard :-). Older smbclient binaries
were not able to connect to the rewritten dfs code as they set the dfs flag bit but then send local paths. Now that our dfs code is a *lot* more robust in detecting this sort of braindamage we can just call into it directly on getting a DFS flag and let the parser sort it out without having to check it's actually connecting to a dfs enabled share (I'm proud of this code :-). Jeremy. (This used to be commit 8c4d929c76ba56d59f651c57d1feb37d2916a436)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/msdfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c
index 1641679a35..13c44e9420 100644
--- a/source3/smbd/msdfs.c
+++ b/source3/smbd/msdfs.c
@@ -1253,7 +1253,7 @@ NTSTATUS resolve_dfspath(connection_struct *conn, BOOL dfs_pathnames, pstring na
{
NTSTATUS status = NT_STATUS_OK;
BOOL dummy;
- if (dfs_pathnames && lp_host_msdfs() && lp_msdfs_root(SNUM(conn))) {
+ if (dfs_pathnames) {
status = dfs_redirect(conn, name, False, &dummy);
}
return status;
@@ -1269,7 +1269,7 @@ NTSTATUS resolve_dfspath(connection_struct *conn, BOOL dfs_pathnames, pstring na
NTSTATUS resolve_dfspath_wcard(connection_struct *conn, BOOL dfs_pathnames, pstring name, BOOL *ppath_contains_wcard)
{
NTSTATUS status = NT_STATUS_OK;
- if (dfs_pathnames && lp_host_msdfs() && lp_msdfs_root(SNUM(conn))) {
+ if (dfs_pathnames) {
status = dfs_redirect(conn, name, True, ppath_contains_wcard);
}
return status;