Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gen/fnmatch.c,v retrieving revision 1.21.40.1 retrieving revision 1.22 diff -u -p -r1.21.40.1 -r1.22 --- src/lib/libc/gen/fnmatch.c 2011/02/08 16:18:59 1.21.40.1 +++ src/lib/libc/gen/fnmatch.c 2011/01/31 04:20:50 1.22 @@ -1,4 +1,4 @@ -/* $NetBSD: fnmatch.c,v 1.21.40.1 2011/02/08 16:18:59 bouyer Exp $ */ +/* $NetBSD: fnmatch.c,v 1.22 2011/01/31 04:20:50 christos Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)fnmatch.c 8.2 (Berkeley) 4/16/94"; #else -__RCSID("$NetBSD: fnmatch.c,v 1.21.40.1 2011/02/08 16:18:59 bouyer Exp $"); +__RCSID("$NetBSD: fnmatch.c,v 1.22 2011/01/31 04:20:50 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -122,7 +122,7 @@ fnmatchx(const char *pattern, const char if (recursion-- == 0) return FNM_NORES; - for (stringstart = string;;) { + for (stringstart = string;;) switch (c = FOLDCASE(*pattern++, flags)) { case EOS: if ((flags & FNM_LEADING_DIR) && *string == '/') @@ -202,12 +202,11 @@ fnmatchx(const char *pattern, const char return FNM_NOMATCH; break; } - } /* NOTREACHED */ } int fnmatch(const char *pattern, const char *string, int flags) { - return fnmatchx(pattern, string, flags, 64); + return fnmatchx(pattern, string, flags, 128); }