From 45a89cc6c636d0e68b32e7c5ee43911209d19087 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 26 Apr 1999 07:50:45 +0000 Subject: Update. 1999-04-26 Ulrich Drepper * posix/fnmatch.c: Include string.h also for glibc. (fnmatch, case '?'): Optimize if cascades a bit. (fnmatch, case '*'): Correct handling if FNM_PATHNAME is set. * posix/testfnm.c: Add test cases for * with FNM_PATHNAME errors. --- posix/testfnm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'posix/testfnm.c') diff --git a/posix/testfnm.c b/posix/testfnm.c index 5ab761b..b43f953 100644 --- a/posix/testfnm.c +++ b/posix/testfnm.c @@ -13,6 +13,9 @@ struct { { "a/b", "a[/]b", 0, 0 }, { "a/b", "a[/]b", FNM_PATHNAME, FNM_NOMATCH }, { "a/b", "[a-z]/[a-z]", 0, 0 }, + { "a/b", "*", FNM_FILE_NAME, FNM_NOMATCH }, + { "a/b", "*[/]b", FNM_FILE_NAME, FNM_NOMATCH }, + { "a/b", "*[b]", FNM_FILE_NAME, FNM_NOMATCH } }; int -- cgit v1.1