summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/patch/patch.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove our hacked GNU patch.pfg2013-09-031-971/+0
| | | | | | | | | | | 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.
* Change the internal buffer used to store input lines from a static buffersepotvin2009-05-081-0/+5
| | | | | | | | to a dynamically allocated one in order to support input lines of arbitrary length. Approved by: kan (mentor) MFC after: 1 month
* Prevent stack-smashing buffer overflows in -D and -r options by usingkris2002-10-131-6/+7
| | | | | | | buffer-safe string functions. The rest of the code is still probably unsafe. MFC after: 1 week
* Add many prototypes and ANSI-ize 'patch. Not a complete job of it, but it getsgad2002-04-281-44/+33
| | | | | | | | | 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
* Add -i option (SUSv3) to patch(1). This allows one to specify amike2002-02-081-2/+5
| | | | | | | patch file on command line instead of stdin. Submitted by: Joseph Mallett <jmallett@xMach.org> MFC after: 1 month
* Fix previous commit such that only -S/--skip ignores errors when applyingkbyanc2000-08-021-0/+7
| | | | | | a patch, returning -f/--force and -t/--batch to their previous semantics. Pointed out by: asami
* Fix patch such that skipping files does not count as a failure.kbyanc2000-08-021-1/+0
| | | | | | | | | | | | | | | 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
* Clean up some $Log$ debris, including some real messes.peter1999-09-051-59/+0
|
* $Header$ -> $FreeBSD$peter1999-08-281-1/+4
|
* Add PATCH_INDEX_FIRST environment variable to do the same as -I optionache1998-01-221-3/+9
|
* Update usage line with new optionache1998-01-211-2/+6
|
* Add -I or --index-first option to take Index: precedence over context diff,ache1998-01-211-2/+12
| | | | as it was in hacked FreeBSD version
* Resurrect patch 2.1 without FreeBSD Index: hackache1998-01-211-0/+1003
|
* Upgrade to 2.5 (contrib version)ache1998-01-041-1000/+0
|
* Add (unsigned char) cast to ctype macrosache1997-10-231-6/+15
|
* fix compilation warnings in patch... (with slight modification)jmg1997-03-171-1/+15
| | | | | | | | also remove -Wall that I acidentally committed last time I was here... Submitted-by: Philippe Charnier Closes PR#2998
* Fix a problem with patch in that is will always default, even when thejmg1997-02-131-3/+6
| | | | | | | | | | | | | 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
* Remove trailing whitespace.rgrimes1995-05-301-36/+40
|
* Fix bug that created new files even when running in -C check mode.hsu1995-01-121-2/+5
| | | | Reviewed by: phk
* added the -C/-check again.phk1994-02-251-6/+21
|
* Put this back - I was somehow under the erroneous impression that patch was injkh1994-02-171-17/+10
| | | | ports, until I saw the the commit messages, that is! :-) All changed backed out.
* From Poul-Henning Kamp - Implement a -C option to verify the integrity ofjkh1994-02-171-7/+21
| | | | a patch before actually applying it.
* b-maked patch-2.10paul1993-06-191-0/+945
OpenPOWER on IntegriCloud