Fix bug 6829 - smbclient does not show special characters properly.
commit843adc1981d0ad380d207bdc014209aa8dd73344
authorJeremy Allison <jra@samba.org>
Thu, 22 Oct 2009 22:06:38 +0000 (22 15:06 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 22 Oct 2009 22:06:38 +0000 (22 15:06 -0700)
tree07a79f9d548f5b338aa2181997bd46834fd5bf02
parent5c6944d33f7d4b3ec74d8ab29d344cd33583ede9
Fix bug 6829 - smbclient does not show special characters properly.
All successful calls to cli_session_setup() *must* be followed by
calls to cli_init_creds() to stash the credentials we successfully
connected with. There were 2 codepaths where this was missing. This
caused smbclient to be unable to open the \srvsvc pipe to do an RPC
netserverenum, and cause it to fall back to a RAP netserverenum,
which uses DOS codepage conversion rather than the full UCS2 of
RPC, so the returned characters were not correct (unless the DOS
codepage was set correctly). Phew. That was fun to track down :-).
Jeremy.
source3/libsmb/clidfs.c
source3/libsmb/libsmb_server.c