+
+ os_realloc(syscheck->filerestrict, (pl +2) * sizeof(char *),
+ syscheck->filerestrict);
+ syscheck->filerestrict[pl] = NULL;
+ syscheck->filerestrict[pl + 1] = NULL;
+ }
+ if(restrictfile)
+ {
+ os_calloc(1, sizeof(OSMatch), syscheck->filerestrict[pl]);
+ if(!OSMatch_Compile(restrictfile, syscheck->filerestrict[pl], 0))
+ {
+ OSMatch *ptm;
+
+ ptm = syscheck->filerestrict[pl];
+
+ merror(REGEX_COMPILE, ARGV0, restrictfile,
+ ptm->error);
+ free(syscheck->filerestrict[pl]);
+ syscheck->filerestrict[pl] = NULL;
+ }