Fix bug 5826 - Directory/Filenames get truncated when 3.2.0 client acesses old server.
commit73640ebc8eeaf29f7cdd903c38079528ba3a5472
authorJeremy Allison <jra@samba.org>
Thu, 16 Oct 2008 22:39:17 +0000 (16 15:39 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 20 Oct 2008 19:47:37 +0000 (20 21:47 +0200)
treea0816d3e726a865ef96752ea6eab3e58361d5d92
parent70027b247431194fe4a777aa0861bce65eead73c
Fix bug 5826 - Directory/Filenames get truncated when 3.2.0 client acesses old server.
There was some code in pull_ucs2_base_talloc() to cope with this case which
hadn't been added to pull_ascii_base_talloc(). The older Samba returns non
unicode names which is why you are seeing this codepath being executed.

Unify the logic in pull_ascii_base_talloc() and pull_ucs2_base_talloc().
Jeremy.
(cherry picked from commit ca430d4730c1454cf003dab376bde8baf904d77d)
source/lib/charcnv.c