svn commit: samba r7157 - in branches/SAMBA_3_0/source/libsmb: .
jra at samba.org
jra at samba.org
Wed Jun 1 00:00:09 GMT 2005
Author: jra
Date: 2005-06-01 00:00:07 +0000 (Wed, 01 Jun 2005)
New Revision: 7157
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7157
Log:
Ensure we abort a directory listing if we see the same
name twice between packets.
Jeremy.
Modified:
branches/SAMBA_3_0/source/libsmb/clilist.c
Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/clilist.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/clilist.c 2005-05-31 23:42:29 UTC (rev 7156)
+++ branches/SAMBA_3_0/source/libsmb/clilist.c 2005-06-01 00:00:07 UTC (rev 7157)
@@ -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