summaryrefslogtreecommitdiff
path: root/usr.bin/patch/pch.c
AgeCommit message (Collapse)Author
2003-08-01- use stdbool.h instead of roll-your-own booleansOtto Moerbeek
- fix some -Wall warnings - fix asserts: in some cases remove them, in other cases they have become Internal errors or detection of malformed patch files. - fix some free() related code ok millert@ tedu@
2003-07-29o add pathnames.hTodd C. Miller
o ignore empty TMPDIR environment variable o strip any trailing slashes from TMPDIR otto@ OK
2003-07-28minor knf and cleanups; otto okTheo de Raadt
2003-07-28More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h,Otto Moerbeek
some rewriting of code to make it more readable and more KNF. ok millert@ tedu@ deraadt@
2003-07-25Add POSIX -b option but don't change the default beahvior wrt backupsTodd C. Miller
yet. The old -b option is now -z (matches GNU patch).
2003-07-22just about nothingTheo de Raadt
2003-07-22POSIX defines allowed commands as {a,c,d,i,s} but patch was onlyTodd C. Miller
recognizing {a,c,d}. We need to recognize 's' (substitute) for the "dot alone on a line" bug fix in diff(1).
2003-07-22More cleanup.Otto Moerbeek
ok millert@ tedu@
2003-07-21fix headerTheo de Raadt
2003-07-21remove a bit more junkTheo de Raadt
2003-07-21knfTheo de Raadt
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-04-08strcpy trashing, help from tedu; ok teduTheo de Raadt
2003-04-05string fixes; ok miod henningTheo de Raadt
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-04avoid overflowsNiels Provos
1998-11-25add -CMarc Espie
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.
1996-09-24sprintf -> snprintf except where guaranteed safe.Todd C. Miller
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