svn commit: samba r2212 - in branches/SAMBA_4_0/source/lib: .

jra at samba.org jra at samba.org
Fri Sep 3 17:44:08 GMT 2004


Author: jra
Date: 2004-09-03 17:44:07 +0000 (Fri, 03 Sep 2004)
New Revision: 2212

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/lib&rev=2212&nolog=1

Log:
Optimisation. Passes masktest against W2K3.
Jeremy.

Modified:
   branches/SAMBA_4_0/source/lib/ms_fnmatch.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ms_fnmatch.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ms_fnmatch.c	2004-09-03 13:42:53 UTC (rev 2211)
+++ branches/SAMBA_4_0/source/lib/ms_fnmatch.c	2004-09-03 17:44:07 UTC (rev 2212)
@@ -173,6 +173,9 @@
 			break;
 
 		case UCS2_CHAR('*'):
+			while (*p == UCS2_CHAR('*')) {
+				p++;
+			}
 			for (; *n; n++) {
 				if (ms_fnmatch_w(p, n, protocol) == 0) return 0;
 			}



More information about the samba-cvs mailing list