apb
aa3786b9b6
Change several int variables to size_t, ssize_t, or ptrdiff_t.
...
This should fix the bug described in CVE-2012-5667 when an input
line is so long that its length cannot be stored in an int
variable.
This change to NetBSD's version of GNU grep 2.5.1 (licenced under
GPLv2) was made without direct reference to any code licenced
under GPLv3.
Thanks to Ignatios Souvatzis for looking at GPLv3-derived
patches and describing the problem in general terms. Thanks to
pkgsrc/devel/coccinelle for helping me find places where int
variables were used to store the results from pointer arithmetic
or strlen(). Thanks to Martin Husemann for testing.
2013-01-05 09:40:15 +00:00
christos
3375c9d9a4
include "system.h" for idir()
2011-05-15 14:57:35 +00:00
dholland
5685631206
Fix -o behavior with patterns that match the empty string, as per PR 43896.
2010-09-28 00:54:04 +00:00
joerg
6417554561
snj doesn't like my accent, so use proper English month names.
2009-10-24 00:10:30 +00:00
joerg
14be05df39
Reduce amount of macro magic. Use canonical form of date.
2009-10-23 23:04:29 +00:00
lukem
68640ea669
Issue a warning if -r is used without a directory:
...
grep: warning: recursive search of stdin
Patch from:
http://savannah.gnu.org/patch/?6474
originally from:
http://www.opensource.apple.com/darwinsource/Current/grep-24/patches/PR-4053512.diff
2008-08-28 03:59:06 +00:00
christos
181678b02c
fix -w using:
...
http://www.linuxfromscratch.org/patches/downloads/grep/ \
grep-2.5.1-option_w-1.patch
2008-08-01 15:24:35 +00:00
apb
5ad2c3f984
Comment out references to the "-P"/"--perl-regexp" option,
...
which is not supported on NetBSD. Fixes PR 39122.
2008-07-21 09:15:12 +00:00
martin
11a6dbe728
Convert TNF licenses to new 2 clause variant
2008-04-30 13:10:46 +00:00
pavel
322d0c4e0a
Update to upstream revision 1.24 by Stepan Kasal to fix a typo.
...
Prompted by PR misc/34850.
2006-10-18 20:46:30 +00:00
wiz
8252aaa6cd
Correct option name. From Takuro KUBOTA in PR 32819.
2006-02-13 21:18:35 +00:00
wiz
7ddd0cc392
error() already adds a newline at the end, so do not provide one
...
in its format string.
2006-01-19 17:50:33 +00:00
wiz
f1134ebb91
Add missing .TP before -P, and sort options.
2004-11-11 01:39:25 +00:00
david
02a77f951b
Missing ':', noted by Thomas T. Thai
2003-04-22 16:17:39 +00:00
cjep
64b9a0f283
penalty, not penality.
2003-03-29 14:33:49 +00:00
wiz
fd87da38ec
Removed by grep2netbsd script (do we want them in regress?).
2003-02-13 08:04:16 +00:00
wiz
5ae0afcbb2
Make diff to 2.5.1 smaller.
2003-02-13 08:01:46 +00:00
wiz
7f2c625432
regen
2003-02-13 07:49:08 +00:00
wiz
8e9c96bbc4
Merge changes from 2.5.1 import.
2003-02-13 07:48:11 +00:00
wiz
930075e3a9
Import of grep-2.5.1 (bugfix release).
2003-02-13 07:43:07 +00:00
mrg
fe5e3928eb
include <stdlib.h> for alloca() prototype.
2003-01-28 01:43:34 +00:00
wiz
64afb4c530
Add grep2netbsd pre-import conversion script.
2003-01-27 00:11:18 +00:00
wiz
d89d70fc8b
Get patches from pkgsrc to make it build.
2003-01-26 23:55:52 +00:00
wiz
22e6e71f2f
Add pre-generated .gmo files.
2003-01-26 23:50:50 +00:00
wiz
91d3eacedf
Re-add some files lost through .cvsignore files during grep-2-5 import.
2003-01-26 23:41:38 +00:00
wiz
4939cd34f0
Remove traces of old -o.
2003-01-26 23:38:50 +00:00
wiz
cb30a4458a
Remove some unneeded files.
2003-01-26 23:32:21 +00:00
wiz
7b437baca2
Merge with 2-5-0.
2003-01-26 23:30:44 +00:00
wiz
aa93e07d05
Reimport grep-2.5 with tag grep-2-5-0 with .cvsignore files removed
...
beforehand (grrrr, no need for them in a tarball...).
2003-01-26 23:27:23 +00:00
wiz
6d37ad7d79
Merge with grep-2.5, part one.
2003-01-26 23:21:46 +00:00
wiz
49af49c40e
Import grep-2.5.
...
Warning: -o is now a valid GNU grep option (--only-matching (-o)), so we
will not be supporting the 4.4BSD -o any longer -- use -H instead.
2003-01-26 23:15:08 +00:00
wiz
c8afb6fe49
therefore, not therfore. From Adrian Mrva.
2002-12-21 13:12:33 +00:00
wiz
8cf2005a5c
Formatting glitches.
2000-05-21 18:32:47 +00:00
wiz
b7ba1243db
reformulate `-o' description, also add it to grep.info
2000-02-27 03:21:26 +00:00
wiz
e9abcf6371
document -o (4.4BSD compatibility option)
2000-02-27 02:49:48 +00:00
wiz
1def904605
re-add pre-generated grep.info and use that one until our texinfo
...
supports @command
2000-02-27 02:36:55 +00:00
wiz
7c194c51f0
use `matcher' only after it has a value
2000-02-27 02:36:01 +00:00
wiz
9e6b558cde
handle conflicts between grep-2-3 and grep-2-4
2000-02-27 00:43:38 +00:00
wiz
63737a9697
Update GNU grep to 2.4
2000-02-27 00:21:41 +00:00
hubertf
4e95d7e16e
-e may be specified multiple times, as per SUSv2.
1999-08-25 01:32:03 +00:00
mrg
3035dcf31a
grep is no longer build as 3 programs, etc., and back to how it was before the latest update. we are not GNU.
1999-04-06 16:54:55 +00:00
simonb
dd5548c01e
Resolve conflicts from import.
1999-02-20 11:34:28 +00:00
simonb
5eed3256fe
Import GNU grep 2.3
1999-02-20 11:17:58 +00:00
tv
0c690a4d8d
Line up Info directory entries horizontally.
1999-02-12 13:01:24 +00:00
thorpej
999252997e
Need string.h for prototypes.
1999-02-12 00:09:10 +00:00
tv
d26f8b9b4b
Duplication.
1999-02-11 17:23:50 +00:00
simonb
0b604d4392
Remove generated Info documentation
1999-02-11 02:20:36 +00:00
simonb
a88dd22cd5
Add -o option for BSD 4.4 compatibility
1999-02-09 12:54:19 +00:00
simonb
6827e6b579
Import GNU grep 2.2f
1999-02-09 12:38:36 +00:00