diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-01-18 19:05:25 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-01-18 19:05:25 +0000 |
commit | 2c5896ff62e34b762dffa8a4f0c9129bba51d936 (patch) | |
tree | e353d420d4bb17f4e005be61db6ed1603c8c5001 | |
parent | 032800072380ecefa20ade801ee65f59b04af6f9 (diff) |
Unbreak *grep -w -l. ok millert@
-rw-r--r-- | usr.bin/grep/mmfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/grep/mmfile.c b/usr.bin/grep/mmfile.c index d0b82579080..532ef7fae31 100644 --- a/usr.bin/grep/mmfile.c +++ b/usr.bin/grep/mmfile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mmfile.c,v 1.7 2003/09/09 05:04:27 tedu Exp $ */ +/* $OpenBSD: mmfile.c,v 1.8 2004/01/18 19:05:24 otto Exp $ */ /*- * Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav @@ -89,7 +89,7 @@ mmfgetln(mmf_t *mmf, size_t *l) if (mmf->ptr >= mmf->end) return NULL; - if ((lflag || qflag) && !boleol) { + if ((lflag || qflag) && !wflag && !boleol) { /* Find starting point to search. */ if (mmf->ptr == mmf->base) p = mmf->ptr; |