git-svn: trunk@1575
Tomasz Kojm authored on 2005/05/25 05:25:41... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Tue May 24 22:24:08 CEST 2005 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/others.c: enable REG_EXTENDED in match_regex |
|
4 |
+ |
|
1 | 5 |
Mon May 23 00:00:22 CEST 2005 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav/others.c: improve temporary name generation |
... | ... |
@@ -123,9 +123,9 @@ int match_regex(const char *filename, const char *pattern) |
123 | 123 |
regex_t reg; |
124 | 124 |
int match, flags; |
125 | 125 |
#if !defined(C_CYGWIN) && !defined(C_OS2) |
126 |
- flags = 0; |
|
126 |
+ flags = REG_EXTENDED; |
|
127 | 127 |
#else |
128 |
- flags = REG_ICASE; /* case insensitive on Windows */ |
|
128 |
+ flags = REG_EXTENDED | REG_ICASE; /* case insensitive on Windows */ |
|
129 | 129 |
#endif |
130 | 130 |
if(regcomp(®, pattern, flags) != 0) { |
131 | 131 |
mprintf("!%s: Could not parse regular expression %s.\n", filename, pattern); |