From af0cad5c4553bfbb1ffdcaef5fba2c639028f2ac Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 15 Dec 2020 16:27:46 -0600 Subject: switched from strcmp to fnmatch in urimatch --- urimatch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/urimatch.c b/urimatch.c index 42ee0aa..a90fb68 100644 --- a/urimatch.c +++ b/urimatch.c @@ -2,6 +2,7 @@ #include #include #include +#include #define LINE_LENGTH 1024 @@ -10,7 +11,7 @@ int match(char negate,char *part,char *arg) { if(part == 0) return 1;//we found that the part isn't here! } else { if(part) { - if(!strcmp(part,arg)) return 1; + if(!fnmatch(arg,part,FNM_NOESCAPE)) return 1; } } return 0; -- cgit v1.2.3