summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-03-05 00:54:07 +0000
committerJeremy Allison <jra@samba.org>2003-03-05 00:54:07 +0000
commitfe45e6d79a61df5f25e461603ff93c563da186b7 (patch)
treec34325dfab8039bc0abe164a805a621aab7483fe
parentc502756113d53c7000c0f83a109ac36cb3a1020b (diff)
downloadsamba-fe45e6d79a61df5f25e461603ff93c563da186b7.tar.gz
samba-fe45e6d79a61df5f25e461603ff93c563da186b7.tar.bz2
samba-fe45e6d79a61df5f25e461603ff93c563da186b7.zip
Connectathon fix. W2K -> W2K over port 445 doing a tconX does the full
\\server\share syntax, not just a "share" tconX syntax. This broke interop with a vendor. Jeremy. (This used to be commit 9d7ea5585c873156ede4b56e43a0d4d75077283a)
-rw-r--r--source3/libsmb/cliconnect.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 4962ffa3c9..49b0004ac2 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -780,13 +780,8 @@ BOOL cli_send_tconX(struct cli_state *cli,
}
}
- if (cli->port == 445) {
- slprintf(fullshare, sizeof(fullshare)-1,
- "%s", share);
- } else {
- slprintf(fullshare, sizeof(fullshare)-1,
- "\\\\%s\\%s", cli->desthost, share);
- }
+ slprintf(fullshare, sizeof(fullshare)-1,
+ "\\\\%s\\%s", cli->desthost, share);
set_message(cli->outbuf,4, 0, True);
SCVAL(cli->outbuf,smb_com,SMBtconX);