Add a check to ensure that the server returns the correct device type, not
authorAndrew Bartlett <abartlet@samba.org>
Wed, 23 Apr 2003 09:26:07 +0000 (09:26 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 23 Apr 2003 09:26:07 +0000 (09:26 +0000)
commita93057efcb6e639be05b7bdcb9729ed8f39f5f62
tree14eae8d116dcaae971434032bba49b655d97d2ef
parent273a9bd7aa608d37b127b61d41773ba8135e38f7
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
source/libsmb/cliconnect.c
source/torture/torture.c