summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-04-23 09:26:07 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-04-23 09:26:07 +0000
commit2e9c2084a640fd9940bc3f17c42e9edc1f015152 (patch)
tree1f0dd4d3001cbafcda897db06ce69517dfc5f1ee /source3/libsmb
parentdb3f4d3eed8104f0f16fb9c7d532d2a9f34adb31 (diff)
downloadsamba-2e9c2084a640fd9940bc3f17c42e9edc1f015152.tar.gz
samba-2e9c2084a640fd9940bc3f17c42e9edc1f015152.tar.bz2
samba-2e9c2084a640fd9940bc3f17c42e9edc1f015152.zip
Add a check to ensure that the server returns the correct device type, not
just the correct error. This should help us avoid breaking NT4 IPC$ connections, for example. This has required that we don't overwrite the device type for IPC$ in our tcon&X code, but only smbwrapper even uses it, and a server that doesn't send a correct dev type breaks other things pretty badly. In any case, I'll 'fix' smbwrapper :-). Andrew Bartlett (This used to be commit a93057efcb6e639be05b7bdcb9729ed8f39f5f62)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 4bfa694e63..9dddb6a163 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -810,9 +810,6 @@ BOOL cli_send_tconX(struct cli_state *cli,
clistr_pull(cli, cli->dev, smb_buf(cli->inbuf), sizeof(fstring), -1, STR_TERMINATE|STR_ASCII);
- if (strcasecmp(share,"IPC$")==0)
- fstrcpy(cli->dev, "IPC");
-
if (cli->protocol >= PROTOCOL_NT1 &&
smb_buflen(cli->inbuf) == 3) {
/* almost certainly win95 - enable bug fixes */