Fix bug 5826 - Directory/Filenames get truncated when 3.2.0 client acesses old server.
commitca430d4730c1454cf003dab376bde8baf904d77d
authorJeremy Allison <jra@samba.org>
Thu, 16 Oct 2008 22:39:17 +0000 (16 15:39 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 16 Oct 2008 22:39:17 +0000 (16 15:39 -0700)
tree4bb9327eb7ac56583715c3d8db16c31a5aafc3bb
parent39bb7531d7fc09e509669214eb0a51bdbb339428
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.
source/lib/charcnv.c