#include "bacula.h"
#include "find.h"
-
int32_t name_max; /* filename max length */
int32_t path_max; /* path name max length */
return true; /* accept file */
}
}
+ for (k=0; k<fo->regex.size(); k++) {
+ const int nmatch = 30;
+ regmatch_t pmatch[nmatch];
+ if (regexec((regex_t *)fo->regex.get(k), ff->fname, nmatch, pmatch, 0) == 0) {
+ ff->flags = fo->flags;
+ ff->GZIP_level = fo->GZIP_level;
+ if (ff->flags & FO_EXCLUDE) {
+ return false; /* reject file */
+ }
+ return true; /* accept file */
+ }
+ }
}
for (i=0; i<fileset->exclude_list.size(); i++) {