Fix bug 6829 - smbclient does not show special characters properly. All successful...
authorJeremy Allison <jra@samba.org>
Thu, 22 Oct 2009 22:30:47 +0000 (15:30 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 23 Oct 2009 06:21:24 +0000 (08:21 +0200)
commit587ca743bf1491e97c984ce4bec5a9bd0a1ae69a
treefac6b92b264f64e8877a42513ee45bc6c3556da8
parenta572c28ca3daa199d78fc340819c5c9ff53a3ed6
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.
source3/libsmb/clidfs.c
source3/libsmb/libsmb_server.c