Page MenuHomeFreeBSD

D10420.id27517.diff
No OneTemporary

D10420.id27517.diff

Index: usr.bin/grep/grep.c
===================================================================
--- usr.bin/grep/grep.c
+++ usr.bin/grep/grep.c
@@ -57,6 +57,10 @@
nl_catd catalog;
#endif
+#ifndef REG_NOSPEC
+#define REG_NOSPEC 0 /* Avoid side effects effect on other regex(3) implementations */
+#endif
+
/*
* Default messags to use when NLS is disabled or no catalogue
* is found.
@@ -704,8 +708,8 @@
case GREP_BASIC:
break;
case GREP_FIXED:
- /* XXX: header mess, REG_LITERAL not defined in gnu/regex.h */
- cflags |= 0020;
+ /* No effect with glibc/libgnuregex regex(3) implementation */
+ cflags |= REG_NOSPEC;
break;
case GREP_EXTENDED:
cflags |= REG_EXTENDED;

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 21, 10:17 PM (9 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25815230
Default Alt Text
D10420.id27517.diff (694 B)

Event Timeline