From a0830c21037f4f62c68334ed4777cc544d2869c7 Mon Sep 17 00:00:00 2001 From: Stathis Kamperis Date: Wed, 10 Jun 2009 22:19:48 +0300 Subject: [PATCH] fnmatch(3): Properly escape the terminating character. --- lib/libc/gen/fnmatch.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/lib/libc/gen/fnmatch.c b/lib/libc/gen/fnmatch.c index ae427cc..51d83af 100644 --- a/lib/libc/gen/fnmatch.c +++ b/lib/libc/gen/fnmatch.c @@ -183,8 +183,6 @@ fnmatch1(const char *pattern, const char *string, int flags, mbstate_t patmbs, &patmbs); if (pclen == (size_t)-1 || pclen == (size_t)-2) return (FNM_NOMATCH); - if (pclen == 0) - pc = '\\'; pattern += pclen; } /* FALLTHROUGH */ -- 1.6.0.2