svn commit: samba r7158 - in trunk/source/libsmb: .
jra at samba.org
jra at samba.org
Wed Jun 1 00:00:10 GMT 2005
Author: jra
Date: 2005-06-01 00:00:08 +0000 (Wed, 01 Jun 2005)
New Revision: 7158
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7158
Log:
Ensure we abort a directory listing if we see the same
name twice between packets.
Jeremy.
Modified:
trunk/source/libsmb/clilist.c
Changeset:
Modified: trunk/source/libsmb/clilist.c
===================================================================
--- trunk/source/libsmb/clilist.c 2005-06-01 00:00:07 UTC (rev 7157)
+++ trunk/source/libsmb/clilist.c 2005-06-01 00:00:08 UTC (rev 7158)
@@ -313,6 +313,13 @@
}
p2 += interpret_long_filename(cli,info_level,p2,&finfo,
&resume_key,&last_name_raw,&last_name_raw_len);
+
+ if (!First && *mask && strcsequal(finfo.name, mask)) {
+ DEBUG(0,("Error: Looping in FIND_NEXT as name %s has already been seen?\n",
+ finfo.name));
+ ff_eos = 1;
+ break;
+ }
}
if (ff_lastname > 0) {
More information about the samba-cvs
mailing list