From: Paul Eggert Date: Tue, 24 Oct 2000 06:18:37 +0000 (+0000) Subject: (AC_FUNC_MATCH): Detect d*/*1 vs d/s/1 bug. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=a6f11d40927e062799d4992af753c0642835eaaf;p=chaz%2Ftar (AC_FUNC_MATCH): Detect d*/*1 vs d/s/1 bug. --- diff --git a/m4/fnmatch.m4 b/m4/fnmatch.m4 index 8f01c74..29a082f 100644 --- a/m4/fnmatch.m4 +++ b/m4/fnmatch.m4 @@ -11,6 +11,7 @@ AC_DEFUN(AC_FUNC_FNMATCH, [AC_TRY_RUN([#include main() { exit (fnmatch ("a*", "abc", 0) != 0 + || fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) != FNM_NOMATCH || fnmatch("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0 || fnmatch("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR) != 0 || fnmatch("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0);