Fix bug 5826 - Directory/Filenames get truncated when 3.2.0 client acesses old server.
commit6f7760704734318acb643610d1af84ffeb8c55d5
authorJeremy Allison <jra@samba.org>
Thu, 16 Oct 2008 22:40:57 +0000 (16 15:40 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 16 Oct 2008 22:40:57 +0000 (16 15:40 -0700)
treec8cbd2af5cc5a3980eb2537be16a0a7c61fc975f
parent2deeb99fff1a90c79ba1927e1a069362e250a63c
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.
source3/lib/charcnv.c