Page MenuHomeFreeBSD

D10420.id27576.diff
No OneTemporary

D10420.id27576.diff

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

File Metadata

Mime Type
text/plain
Expires
Mon, Oct 20, 1:38 AM (1 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23952490
Default Alt Text
D10420.id27576.diff (533 B)

Event Timeline