summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-18 00:36:37 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-18 00:36:37 +0000
commit108580c2241bdfb1fd0ab000abf08d883864d23f (patch)
tree7bd9ce9cc175fa7ddcf5e7a60e2c30a09a12af09
parent28dff282a9f9c0a850782aebc32fc000cff637f6 (diff)
downloadsamba-108580c2241bdfb1fd0ab000abf08d883864d23f.tar.gz
samba-108580c2241bdfb1fd0ab000abf08d883864d23f.tar.bz2
samba-108580c2241bdfb1fd0ab000abf08d883864d23f.zip
The cli_send_tconX code already determines to send \\server\share to port 139
and share to 445, so doing this only confuses the issue (sending \\server\\server\share to 139) and makes debugging specific error codes more difficult. Andrew Bartlett (This used to be commit 1a723bcda72901dac00b36955e860e3af23c0dc6)
-rw-r--r--source3/client/client.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index e5a9592fcc..5da12fd984 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2434,24 +2434,9 @@ static struct cli_state *do_connect(const char *server, const char *share)
if (!cli_send_tconX(c, sharename, "?????",
password, strlen(password)+1)) {
- pstring full_share;
-
- /*
- * Some servers require \\server\share for the share
- * while others are happy with share as we gave above
- * Lets see if we give it the long form if it works
- */
- pstrcpy(full_share, "\\\\");
- pstrcat(full_share, server);
- pstrcat(full_share, "\\");
- pstrcat(full_share, sharename);
- if (!cli_send_tconX(c, full_share, "?????", password,
- strlen(password) + 1)) {
-
- d_printf("tree connect failed: %s\n", cli_errstr(c));
- cli_shutdown(c);
- return NULL;
- }
+ d_printf("tree connect failed: %s\n", cli_errstr(c));
+ cli_shutdown(c);
+ return NULL;
}
DEBUG(4,(" tconx ok\n"));