Fix bug 6829 - smbclient does not show special characters properly. All successful...
commit26cc0331a3776d5b4ec9e4e5a65211968d3598b7
authorJeremy Allison <jra@samba.org>
Thu, 22 Oct 2009 22:35:59 +0000 (22 15:35 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 13 Jan 2010 13:00:52 +0000 (13 14:00 +0100)
tree8a15efec3c95bdae6f4f09c712695e5555adef51
parentb516f88218b83f3ed222ae78f6546aeab0960ea5
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 :-). Includes logic simplification in libsmb_server.c Jeremy.
(cherry picked from commit bbeda1398687b79596769a5d046e1e0f249bd382)
source/libsmb/clidfs.c
source/libsmb/libsmb_server.c