From 2011973a843a5431b3c3e5d718b21c13a1c198de Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 3 Sep 2007 19:16:40 +0000 Subject: [PATCH] Add another test to fnmatch.c git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5444 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/lib/fnmatch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bacula/src/lib/fnmatch.c b/bacula/src/lib/fnmatch.c index a352fa2234..c1ec13ded3 100644 --- a/bacula/src/lib/fnmatch.c +++ b/bacula/src/lib/fnmatch.c @@ -248,7 +248,7 @@ static struct test tests[] = { /*10*/ {"x*", "x", FNM_PATHNAME | FNM_LEADING_DIR, 0}, {"x*", "x/y", FNM_PATHNAME | FNM_LEADING_DIR, 0}, {"x*", "x/y/z", FNM_PATHNAME | FNM_LEADING_DIR, 0}, - {"a*b/*", "abbb/.x", FNM_PATHNAME|FNM_PERIOD, FNM_NOMATCH}, /* ??? */ + {"a*b/*", "abbb/.x", FNM_PATHNAME|FNM_PERIOD, FNM_NOMATCH}, {"a*b/*", "abbb/xy", FNM_PATHNAME|FNM_PERIOD, 0}, /*15*/ {"[A-[]", "A", 0, 0}, {"[A-[]", "a", 0, FNM_NOMATCH}, @@ -286,6 +286,7 @@ static struct test tests[] = { { "a*b", "a.b", FNM_PATHNAME|FNM_PERIOD, 0 }, { "a[.]b", "a.b", FNM_PATHNAME|FNM_PERIOD, 0 }, /*49*/ { "*a*", "a/b", FNM_PATHNAME|FNM_LEADING_DIR, 0 }, + { "[/b", "[/b", 0, 0}, #ifdef FULL_TEST /* This test takes a *long* time */ {"a*b*c*d*e*f*g*h*i*j*k*l*m*n*o*p*q*r*s*t*u*v*w*x*y*z*", -- 2.39.5