diff options
author | epoch <epoch@hack.thebackupbox.net> | 2020-12-22 07:04:04 +0000 |
---|---|---|
committer | epoch <epoch@hack.thebackupbox.net> | 2020-12-22 07:04:04 +0000 |
commit | 1a9d4eef06abda47620bbb7f2dda2c981d5a2ce4 (patch) | |
tree | 1fc2d14007b01458f32ab98fc85f34474b823c8f | |
parent | e50dd187814cfa974844d3c55142ef71a3aa5bc6 (diff) | |
parent | af0cad5c4553bfbb1ffdcaef5fba2c639028f2ac (diff) | |
download | uritools-1a9d4eef06abda47620bbb7f2dda2c981d5a2ce4.tar.gz uritools-1a9d4eef06abda47620bbb7f2dda2c981d5a2ce4.zip |
Merge branch 'master' of ssh://batou.thebackupbox.net:65432/uritools
-rw-r--r-- | urimatch.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,6 +2,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <fnmatch.h> #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; |