diff options
author | Jeremy Allison <jra@samba.org> | 2005-05-31 19:06:52 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:57:03 -0500 |
commit | 848940d5a91b310e58d0631ead293418ea4186f0 (patch) | |
tree | b394dd4f24f892058c63e375eb1e0a1901d46241 /examples/libsmbclient | |
parent | 05c04cfd2526b8b9a82916b5dffc18bf27c3f198 (diff) | |
download | samba-848940d5a91b310e58d0631ead293418ea4186f0.tar.gz samba-848940d5a91b310e58d0631ead293418ea4186f0.tar.xz samba-848940d5a91b310e58d0631ead293418ea4186f0.zip |
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.
Diffstat (limited to 'examples/libsmbclient')
0 files changed, 0 insertions, 0 deletions