From: Todd C. Miller Date: Thu, 23 Mar 2000 15:11:56 +0000 (+0000) Subject: Pull in newer fnmatch(3) that supports FNM_CASEFOLD X-Git-Tag: SUDO_1_6_3~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a41ebe7227647281cbc21401838491ef1b598de;p=sudo Pull in newer fnmatch(3) that supports FNM_CASEFOLD --- diff --git a/emul/fnmatch.h b/emul/fnmatch.h index 85777ab89..7a66a46d2 100644 --- a/emul/fnmatch.h +++ b/emul/fnmatch.h @@ -31,6 +31,7 @@ * SUCH DAMAGE. * * @(#)fnmatch.h 8.1 (Berkeley) 6/2/93 + * $OpenBSD: fnmatch.h,v 1.4 1997/09/22 05:25:32 millert Exp $ */ #ifndef _FNMATCH_H_ @@ -41,7 +42,11 @@ #define FNM_NOESCAPE 0x01 /* Disable backslash escaping. */ #define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ #define FNM_PERIOD 0x04 /* Period must be matched by period. */ +#define FNM_LEADING_DIR 0x08 /* Ignore / after Imatch. */ +#define FNM_CASEFOLD 0x10 /* Case insensitive search. */ +#define FNM_IGNORECASE FNM_CASEFOLD +#define FNM_FILE_NAME FNM_PATHNAME -int fnmatch __P((const char *, const char *, int)); +int fnmatch __P((const char *, const char *, int)); #endif /* !_FNMATCH_H_ */