diff --git a/lib/roken/fnmatch.c b/lib/roken/fnmatch.c index 70defc049..126949a8e 100644 --- a/lib/roken/fnmatch.c +++ b/lib/roken/fnmatch.c @@ -99,7 +99,7 @@ rk_fnmatch(const char *pattern, const char *string, int flags) /* General case, use recursion. */ while ((test = *string) != EOS) { - if (!fnmatch(pattern, string, flags & ~FNM_PERIOD)) + if (!rk_fnmatch(pattern, string, flags & ~FNM_PERIOD)) return (0); if (test == '/' && flags & FNM_PATHNAME) break;