s3: smbclient: Stop an SMB2-connection from blundering into SMB1-specific calls.
commitea82bca8cef0d736305a7a40b3198fc55ea66af8
authorJeremy Allison <jra@samba.org>
Thu, 3 Oct 2019 21:02:13 +0000 (3 14:02 -0700)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 7 Oct 2019 08:13:44 +0000 (7 08:13 +0000)
treeeabebc859a6be6669fe12d9f361b60e1a194b3df
parent4b62c4f7addba3ce47f1d0d5f2b64103602b7ca2
s3: smbclient: Stop an SMB2-connection from blundering into SMB1-specific calls.

Fix in the same way this was done in SMBC_opendir_ctx() for libsmbclient.
This fix means the admin no longer has to remember to set 'min client protocol ='
when connecting to an SMB2-only server (MacOSX for example) and trying to
list shares.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14152

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/client/client.c