From e8ed521c7e598bce53cbd9ac2b607da18cefde3a Mon Sep 17 00:00:00 2001 From: Doke Scott Date: Tue, 18 Aug 2015 19:18:09 -0400 Subject: [PATCH] Let unix use glob patterns in syscheck directory entries. As a side effect this lets you scan directories with commas in the name. --- src/config/syscheck-config.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/config/syscheck-config.c b/src/config/syscheck-config.c index a289e5b3f..e2304824a 100644 --- a/src/config/syscheck-config.c +++ b/src/config/syscheck-config.c @@ -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, '[')) { @@ -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);