Displaying 2 results from an estimated 2 matches for "regular_exp".
2002 May 07
0
Fixing exclude/exclude wildcard handling
...= 0) break;
+ if (wildmat(user, tok)) break;
}
free(users);
Index: exclude.c
--- exclude.c 2002/04/11 02:25:53 1.44
+++ exclude.c 2002/05/08 04:19:50
@@ -55,18 +55,7 @@
if (!ret->pattern) out_of_memory("make_exclude");
if (strpbrk(pattern, "*[?")) {
- ret->regular_exp = 1;
- ret->fnmatch_flags = FNM_PATHNAME;
- if (strstr(pattern, "**")) {
- static int tested;
- if (!tested) {
- tested = 1;
- if (fnmatch("a/b/*", "a/b/c/d", FNM_PATHNAME)==0) {
- rprintf(FERROR,"WARNING: fnmatch FNM_PATHNA...
2002 Nov 11
0
Regular Expression support
...} else {
ret->include = include;
+ ret->use_real_regexp = regexp;
}
ret->pattern = strdup(pattern);
if (!ret->pattern) out_of_memory("make_exclude");
+ if (!ret->use_real_regexp) {
if (strpbrk(pattern, "*[?")) {
- ret->regular_exp = 1;
+ ret->fnmatch = 1;
ret->fnmatch_flags = FNM_PATHNAME;
if (strstr(pattern, "**")) {
static int tested;
@@ -76,6 +85,7 @@
if (!strchr(ret->pattern,'/')) {
ret->local = 1;
}
+ }
return ret;
}
@@ -85,15 +95,86 @@
free(ex-&g...