summaryrefslogtreecommitdiffstats
path: root/usr.bin/grep/grep.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2019-01-23 23:00:54 +0000
committertedu <tedu@openbsd.org>2019-01-23 23:00:54 +0000
commit3a21e4794751456cc453dc37b1a11d23c52ae4a0 (patch)
tree235cf9f62c4d1432cfaac7c07d10660fb5702bdc /usr.bin/grep/grep.c
parenteliminate a ?: in witness mtx initializer by pushing the default one (diff)
downloadwireguard-openbsd-3a21e4794751456cc453dc37b1a11d23c52ae4a0.tar.xz
wireguard-openbsd-3a21e4794751456cc453dc37b1a11d23c52ae4a0.zip
rework grep_open to be more careful about directories.
cleaner, but should be no functional change. from Lauri Tirkkonen
Diffstat (limited to 'usr.bin/grep/grep.c')
-rw-r--r--usr.bin/grep/grep.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/grep/grep.c b/usr.bin/grep/grep.c
index 913cc97a0f3..fc0b7dc01c4 100644
--- a/usr.bin/grep/grep.c
+++ b/usr.bin/grep/grep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grep.c,v 1.57 2017/12/10 09:17:24 jmc Exp $ */
+/* $OpenBSD: grep.c,v 1.58 2019/01/23 23:00:54 tedu Exp $ */
/*-
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
@@ -63,9 +63,7 @@ int Fflag; /* -F: interpret pattern as list of fixed strings */
int Hflag; /* -H: always print filename header */
int Lflag; /* -L: only show names of files with no matches */
int Rflag; /* -R: recursively search directory trees */
-#ifndef NOZ
int Zflag; /* -Z: decompress input before processing */
-#endif
int bflag; /* -b: show block numbers for each match */
int cflag; /* -c: only show a count of matching lines */
int hflag; /* -h: don't print filename headers */