Page MenuHomeFreeBSD

D10420.id27946.diff
No OneTemporary

D10420.id27946.diff

Index: head/usr.bin/grep/grep.c
===================================================================
--- head/usr.bin/grep/grep.c
+++ head/usr.bin/grep/grep.c
@@ -716,8 +716,13 @@
case GREP_BASIC:
break;
case GREP_FIXED:
- /* XXX: header mess, REG_LITERAL not defined in gnu/regex.h */
- cflags |= 0020;
+#if defined(REG_NOSPEC)
+ cflags |= REG_NOSPEC;
+#elif defined(REG_LITERAL)
+ cflags |= REG_LITERAL;
+#else
+ errx(2, "literal expressions not supported at compile time");
+#endif
break;
case GREP_EXTENDED:
cflags |= REG_EXTENDED;

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 18, 8:14 PM (27 m, 1 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15889488
Default Alt Text
D10420.id27946.diff (555 B)

Event Timeline