summaryrefslogtreecommitdiff
path: root/usr.bin/patch
AgeCommit message (Collapse)Author
2003-07-21knf and other cleanup; ok ottoTheo de Raadt
2003-07-18remove junk; ok otto teduTheo de Raadt
2003-07-17Fix merge error.Otto Moerbeek
ok millert@ tedu@
2003-07-16Teach patch how to deal with \ No newline at end of file.Otto Moerbeek
From NetBSD. ok deraadt@
2003-07-16Do not produce garbage if the patch file contains invalid line numbers.Otto Moerbeek
ok millert@ tedu@
2003-07-02bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)Anil Madhavapeddy
2003-04-08oh, and the false protos can goTheo de Raadt
2003-04-08Strcat and Strcpy are no longer usedTheo de Raadt
2003-04-08strcpy trashing, help from tedu; ok teduTheo de Raadt
2003-04-06another asprintf() simplifies things furtherTodd C. Miller
2003-04-05string fixes; ok miod henningTheo de Raadt
2003-02-18copyrights added;Jason McIntyre
ed(1): Andrew Moore patch(1): Larry Wall (thanks espie@ for help with this one) units(1): Adrian Mariano
2003-01-06typo; jmc@prioris.mini.pw.edu.plTheo de Raadt
2002-07-044 unchecked mallocs; cloder@acm.orgTheo de Raadt
2002-03-05patch(1) is now free, thanks Larry!Niklas Hallqvist
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2001-11-19kill more registersMike Pechkin
millert@ ok
2000-12-14make patch -f and -b actually skip patches for which the file can't beBob Beck
found, instead of claiming it will and erroring out anyway.
1999-12-04a few more overflows goneNiels Provos
1999-12-04revert strlcpy to strcpy for one case.Niels Provos
1999-12-04avoid overflowsNiels Provos
1999-08-31patch file should hold at least one patch, otherwise we're entitled toMarc Espie
a diagnostic.
1999-06-05- remove trailing white spaceAaron Campbell
- remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
1999-01-11fix seg fault on sparcMarco S Hyman
1999-01-03Use libc basename(3) and dirname(3) instead of defining our own. Also clean ↵Todd C. Miller
up some nasty assumptions that basename() returns a pointer that lies within its argument
1999-01-03back out last change, other parts of patch rely on basename() returning a ↵Todd C. Miller
ptr to a part of name, not a new string
1999-01-03we have basename(3) and dirname(3) in libc (albeit with slightly different ↵Todd C. Miller
semantics
1998-11-25add -CMarc Espie
1997-09-22Start of -Wall and cleaning up icky bits.Todd C. Miller
1997-09-06I hate static buffer sizes! Prolongue the max length of a line to 8KNiklas Hallqvist
(from 1K which a patch in ports/print/ghostscript5 had a line longer than).
1997-06-24*** empty log message ***dgregor
1997-04-03From FreeBSD 1.7 by markm. The log message:imp
Priorities were broken. If there was an Index: line and ***/--- lines with valid names, the ***/---names were taken first. this broke eg: Index: foo/Makefile ========== RCS <blah> Retrieving <blah> diff <blah> *** Makefile <blah> --- Makefile <blah> By trying to patch the Makefile in the _curent_ directory, rather than the one in the foo/ directory.
1997-01-17rindex -> strrchrTodd C. Miller
1997-01-17more r?index -> strr?chrTodd C. Miller
1997-01-17r?index -> strr?chrTodd C. Miller
1996-09-24sprintf -> snprintf except where guaranteed safe.Todd C. Miller
1996-09-24Use mkstemp(). Since temp files get re-used we use mkstemp() to makeTodd C. Miller
us a "place holder" (and discard the fd) to protect from DOS attacks and then just re-use that.
1996-09-23undo last; mkstemp is *hard* to do in hereTheo de Raadt
1996-09-15Be slightly safer opening temp files.Todd C. Miller
1996-07-01undo mktemp cleanup until i get it rightTheo de Raadt
1996-06-25mktemp w/ open & fdopenTheo de Raadt
1996-06-10Support the long options that FSF's patch version has. $OpenBSD$ addedNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt