Fix bug 6829 - smbclient does not show special characters properly. All successful...
commitbbeda1398687b79596769a5d046e1e0f249bd382
authorJeremy Allison <jra@samba.org>
Thu, 22 Oct 2009 22:35:59 +0000 (22 15:35 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 23 Oct 2009 07:19:05 +0000 (23 09:19 +0200)
tree95284c26962594f228005d7646e7ccaac8066b86
parent4fce98ce2578f4bc5063a766fdacbdd5f840e446
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.
source/libsmb/clidfs.c
source/libsmb/libsmb_server.c