r7151: Fix for bug #2698. If a unicode to unix charset conversion fails (due to buggy...
authorJeremy Allison <jra@samba.org>
Tue, 31 May 2005 19:06:52 +0000 (19:06 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:57:03 +0000 (10:57 -0500)
commit848940d5a91b310e58d0631ead293418ea4186f0
treeb394dd4f24f892058c63e375eb1e0a1901d46241
parent05c04cfd2526b8b9a82916b5dffc18bf27c3f198
r7151: Fix for bug #2698. If a unicode to unix charset conversion fails (due to buggy iconv?) we can
be left with a filename that doesn't exist on the remote machine. If we then do a findnext
with this file the server gets confused and restarts from the beginning of the directory,
causing directory listing loops. Fix this by keeping a copy of the "raw" filename data and
length and using this as the argument to findnext. This won't fix the incorrect iconv
conversion into the finfo struct but at least it ensures that directory listings always
terminate. Tested against NTFS and FAT directories.
Jeremy.
source/libsmb/clilist.c