- handle start of line in exclude properly
- if (fnmatch(ex->pattern, name, 0) == 0)
+ if (fnmatch(pattern, name, 0) == 0)
return 1;
} else {
int l1 = strlen(name);
return 1;
} else {
int l1 = strlen(name);
- int l2 = strlen(ex->pattern);
+ int l2 = strlen(pattern);
- strcmp(name+(l1-l2),ex->pattern) == 0 &&
+ strcmp(name+(l1-l2),pattern) == 0 &&
(l1==l2 || (!match_start && name[l1-(l2+1)] == '/')))
return 1;
}
(l1==l2 || (!match_start && name[l1-(l2+1)] == '/')))
return 1;
}
while (ret == 0) {
fd_set fds;
struct timeval tv;
while (ret == 0) {
fd_set fds;
struct timeval tv;