From 228293b5906774f8d5dffde32251863d045a354e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 28 Mar 2001 06:25:09 +0000 Subject: Update. * posix/fnmatch_loop.c (FCT): Handle !() after * special like @() and +(). * posix/tst-fnmatch.input: Add test cases for matching empty strings. --- posix/fnmatch_loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'posix/fnmatch_loop.c') diff --git a/posix/fnmatch_loop.c b/posix/fnmatch_loop.c index 20ae0e3..fd25853 100644 --- a/posix/fnmatch_loop.c +++ b/posix/fnmatch_loop.c @@ -164,8 +164,8 @@ FCT (pattern, string, string_end, no_leading_period, flags) if (c == L('[') || (__builtin_expect (flags & FNM_EXTMATCH, 0) != 0 - /* XXX Do we have to add '!'? */ - && (c == L('@') || c == L('+')) && *p == L('('))) + && (c == L('@') || c == L('+') || c == L('!')) + && *p == L('('))) { int flags2 = ((flags & FNM_FILE_NAME) ? flags : (flags & ~FNM_PERIOD)); -- cgit v1.1