Skip to content

Commit

Permalink
Let unix use glob patterns in syscheck directory entries. As a side e…
Browse files Browse the repository at this point in the history
…ffect

this lets you scan directories with commas in the name.
  • Loading branch information
doke2 committed Aug 18, 2015
1 parent fac271e commit e8ed521
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/config/syscheck-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ static int read_attr(syscheck_config *syscheck, const char *dirs, char **g_attrs
}

/* Check for glob */
#ifndef WIN32
if (strchr(tmp_dir, '*') ||
strchr(tmp_dir, '?') ||
strchr(tmp_dir, '[')) {
Expand Down Expand Up @@ -397,9 +396,6 @@ static int read_attr(syscheck_config *syscheck, const char *dirs, char **g_attrs
else {
dump_syscheck_entry(syscheck, tmp_dir, opts, 0, restrictfile);
}
#else
dump_syscheck_entry(syscheck, tmp_dir, opts, 0, restrictfile);
#endif

if (restrictfile) {
free(restrictfile);
Expand Down

0 comments on commit e8ed521

Please sign in to comment.