summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/patch/patch.c
AgeCommit message (Collapse)Author
2013-09-03Remove our hacked GNU patch.Pedro F. Giffuni
The old (2.1) GNU patch has outlived its days. The major local changes have been moved into the less restrictedly licensed patch(1) we adopted in usr.bin/ . A much newer version of GNU patch is available in the ports tree (devel/patch). Disconnect from the build and remove. Notes: svn path=/head/; revision=255191
2009-05-08Change the internal buffer used to store input lines from a static bufferStephane E. Potvin
to a dynamically allocated one in order to support input lines of arbitrary length. Approved by: kan (mentor) MFC after: 1 month Notes: svn path=/head/; revision=191910
2002-10-13Prevent stack-smashing buffer overflows in -D and -r options by usingKris Kennaway
buffer-safe string functions. The rest of the code is still probably unsafe. MFC after: 1 week Notes: svn path=/head/; revision=105017
2002-04-28Add many prototypes and ANSI-ize 'patch. Not a complete job of it, but it getsGarance A Drosehn
our patch to look a little more like NetBSD's, and has the nice characteristic that the object code is exactly the same after the change as before it (even in patch.c and pch.c, which have pesky 'assert' statements in them). Reviewed by: /sbin/md5 on i386, alpha, sparc64 MFC after: 3 days Notes: svn path=/head/; revision=95601
2002-02-08Add -i option (SUSv3) to patch(1). This allows one to specify aMike Barcroft
patch file on command line instead of stdin. Submitted by: Joseph Mallett <jmallett@xMach.org> MFC after: 1 month Notes: svn path=/head/; revision=90379
2000-08-02Fix previous commit such that only -S/--skip ignores errors when applyingKelly Yancey
a patch, returning -f/--force and -t/--batch to their previous semantics. Pointed out by: asami Notes: svn path=/head/; revision=64156
2000-08-02Fix patch such that skipping files does not count as a failure.Kelly Yancey
Previously, using -S/--skip, -f/--force, or -t/--batch to skip a patch in a patchset still registers a failure which causes patch to return a non-zero exit code. This is particularly undesirable with regards to ports as there is no way to ignore the non-zero code. (Luckily, we don't currently have any ports that make use of any of these options.) The PR (yes, my own) is slightly incorrect: It states that -f does indeed properly skip patches. It does, but it still sets the failure flag causing patch to return non-zero. PR: 19638 Submitted by: kbyanc@posi.net Notes: svn path=/head/; revision=64120
1999-09-05Clean up some $Log$ debris, including some real messes.Peter Wemm
Notes: svn path=/head/; revision=50965
1999-08-28$Header$ -> $FreeBSD$Peter Wemm
Notes: svn path=/head/; revision=50488
1998-01-22Add PATCH_INDEX_FIRST environment variable to do the same as -I optionAndrey A. Chernov
Notes: svn path=/head/; revision=32698
1998-01-21Update usage line with new optionAndrey A. Chernov
Notes: svn path=/head/; revision=32674
1998-01-21Add -I or --index-first option to take Index: precedence over context diff,Andrey A. Chernov
as it was in hacked FreeBSD version Notes: svn path=/head/; revision=32673
1998-01-21Resurrect patch 2.1 without FreeBSD Index: hackAndrey A. Chernov
Notes: svn path=/head/; revision=32672
1998-01-04Upgrade to 2.5 (contrib version)Andrey A. Chernov
Notes: svn path=/head/; revision=32252
1997-10-23Add (unsigned char) cast to ctype macrosAndrey A. Chernov
Notes: svn path=/head/; revision=30661
1997-03-17fix compilation warnings in patch... (with slight modification)John-Mark Gurney
also remove -Wall that I acidentally committed last time I was here... Submitted-by: Philippe Charnier Closes PR#2998 Notes: svn path=/head/; revision=23955
1997-02-13Fix a problem with patch in that is will always default, even when theJohn-Mark Gurney
controlling terminal is closed. Now the function ask() will return 1 when th input is known to come from a file or terminal, or it will return 0 when ther was a read error. Modified the question "Skip patch?" so that on an error from ask it will skip the patch instead of looping. Closes PR#777 2.2 candidate Notes: svn path=/head/; revision=22674
1995-05-30Remove trailing whitespace.Rodney W. Grimes
Notes: svn path=/head/; revision=8858
1995-01-12Fix bug that created new files even when running in -C check mode.Jeffrey Hsu
Reviewed by: phk Notes: svn path=/head/; revision=5556
1994-02-25added the -C/-check again.Poul-Henning Kamp
Notes: svn path=/head/; revision=1212
1994-02-17Put this back - I was somehow under the erroneous impression that patch was inJordan K. Hubbard
ports, until I saw the the commit messages, that is! :-) All changed backed out. Notes: svn path=/head/; revision=1174
1994-02-17From Poul-Henning Kamp - Implement a -C option to verify the integrity ofJordan K. Hubbard
a patch before actually applying it. Notes: svn path=/head/; revision=1173
1993-06-19b-maked patch-2.10Paul Richards
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=33