From: Harlan Stenn Date: Fri, 28 Feb 2014 09:20:55 +0000 (-0500) Subject: [Bug 2561] Allow wildcards in the target of the "interface" command X-Git-Tag: NTP_4_2_7P426~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ea7c4773ec176378da1516fa0d6e1334f9a6794;p=thirdparty%2Fntp.git [Bug 2561] Allow wildcards in the target of the "interface" command bk: 531054f77B2WPisfNKHFejknv0l7dA --- diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c index 10dd92527..a59bb3966 100644 --- a/ntpd/ntp_io.c +++ b/ntpd/ntp_io.c @@ -11,6 +11,9 @@ #include #ifdef HAVE_FNMATCH_H # include +# if !defined(FNM_CASEFOLD) && defined(FNM_IGNORECASE) +# define FNM_CASEFOLD FNM_IGNORECASE +# endif #endif #ifdef HAVE_SYS_PARAM_H # include @@ -1359,7 +1362,7 @@ interface_action( case MATCH_IFNAME: if (if_name != NULL -#ifdef HAVE_FNMATCH +#if defined(HAVE_FNMATCH) && defined(FNM_CASEFOLD) && !fnmatch(rule->if_name, if_name, FNM_CASEFOLD) #else && !strcasecmp(if_name, rule->if_name)