svn commit: samba r5969 - in trunk/source/libsmb: .
jra at samba.org
jra at samba.org
Tue Mar 22 21:22:56 GMT 2005
Author: jra
Date: 2005-03-22 21:22:55 +0000 (Tue, 22 Mar 2005)
New Revision: 5969
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5969
Log:
Fix old bug where ff_searchcount was being compared -1 ! This caused a
filename to be processed twice.
Jeremy.
Modified:
trunk/source/libsmb/clilist.c
Changeset:
Modified: trunk/source/libsmb/clilist.c
===================================================================
--- trunk/source/libsmb/clilist.c 2005-03-22 21:17:01 UTC (rev 5968)
+++ trunk/source/libsmb/clilist.c 2005-03-22 21:22:55 UTC (rev 5969)
@@ -283,7 +283,7 @@
/* put in a length for the last entry, to ensure we can chain entries
into the next packet */
- for (p2=p,i=0;i<(ff_searchcount-1);i++) {
+ for (p2=p,i=0;i<ff_searchcount;i++) {
p2 += interpret_long_filename(cli,info_level,p2,&finfo);
}
SSVAL(p2,0,data_len - PTR_DIFF(p2,p));
More information about the samba-cvs
mailing list