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)
commit57fa7e154737df74a6a4fd9b2e3cf29917bd5ff0
tree3d0b76cea37a413a5120c4a13e37b5f717f9b0b7
parent583b7ed6595e85e8366632dd0ab5dbfcdc1838e6
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.
(This used to be commit 848940d5a91b310e58d0631ead293418ea4186f0)
source3/libsmb/clilist.c