diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2010-02-22 17:35:12 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2010-02-22 17:35:12 +0000 |
commit | a82fa2461aa16a1170349095dd3f37bac056e39e (patch) | |
tree | 2c893f847ed1ef22acbea1b05f20adb224a753eb /src | |
parent | 95977cf5b8e50f8d90d704fcf551694a4a9f84ed (diff) | |
download | msec-a82fa2461aa16a1170349095dd3f37bac056e39e.tar msec-a82fa2461aa16a1170349095dd3f37bac056e39e.tar.gz msec-a82fa2461aa16a1170349095dd3f37bac056e39e.tar.bz2 msec-a82fa2461aa16a1170349095dd3f37bac056e39e.tar.xz msec-a82fa2461aa16a1170349095dd3f37bac056e39e.zip |
properly handle exclude_regexp in msec_find
Diffstat (limited to 'src')
-rw-r--r-- | src/msec_find/find.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msec_find/find.c b/src/msec_find/find.c index 381dc25..3959ea9 100644 --- a/src/msec_find/find.c +++ b/src/msec_find/find.c @@ -87,7 +87,7 @@ static int traverse(const char *file, const struct stat *sb, int flag, struct FT (strncmp("/sys", file, 4) == 0) ) return 0; - if (use_regexp && regexec(&exclude_regexp, file, 0, NULL, 0) == 0) { + if (use_regexp && (regexec(&exclude_regexp, file, 0, NULL, 0) == 0)) { return 0; } |