summaryrefslogtreecommitdiff
path: root/usr.bin/patch/patch.c
AgeCommit message (Expand)Author
2007-04-18adds a detailed synopsis to the man page; sorts options inIgor Sobrado
2006-03-11type police and assorted cleanup. From Lionel Fourquaux; ok ray@Otto Moerbeek
2004-11-19Write reject file in unified format if the original diff was inOtto Moerbeek
2004-09-14remove unused variableTheo de Raadt
2004-07-09Properly detect if a patch already has been applied, even if thereOtto Moerbeek
2004-06-18Unbreak handling of standard diffs (which have an empty context).Otto Moerbeek
2004-06-14Teach patch(1) to detect if a diff creating a file (or one addingOtto Moerbeek
2003-10-31o fairly major man page reorganizationTodd C. Miller
2003-08-10Do not add an extra newline at the end if the last line of the inputOtto Moerbeek
2003-08-10Warn if the diff is a context or unified diff and the contextOtto Moerbeek
2003-08-01- use stdbool.h instead of roll-your-own booleansOtto Moerbeek
2003-07-31Historically, patch would treat a bare -p as -p0. This contradictsTodd C. Miller
2003-07-31Print a maximum of one invalid line number warning per patch in a patch file.Otto Moerbeek
2003-07-30Add POSIX -i option; tedu@ OKTodd C. Miller
2003-07-29o add pathnames.hTodd C. Miller
2003-07-28minor knf and cleanups; otto okTheo de Raadt
2003-07-28Be more exact on how backup files are handled.Otto Moerbeek
2003-07-28Make patch(1) exit value match POSIX and be consistent with diff.Todd C. Miller
2003-07-25Add POSIX -b option but don't change the default beahvior wrt backupsTodd C. Miller
2003-07-23New version of invalid line number fix. Passes patch(1) regressions.Otto Moerbeek
2003-07-22Make rejname[] static to patch.c and crank its size to NAME_MAX+1Todd C. Miller
2003-07-22Use getopt_long() to parse options instead of rolling our own.Todd C. Miller
2003-07-22More cleanup.Otto Moerbeek
2003-07-21Back out invalid line number fix. It core dumps in some cases. Problem found byOtto Moerbeek
2003-07-21fix headerTheo de Raadt
2003-07-21knf and other cleanup; ok ottoTheo de Raadt
2003-07-18remove junk; ok otto teduTheo de Raadt
2003-07-16Do not produce garbage if the patch file contains invalid line numbers.Otto Moerbeek
2003-07-02bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)Anil Madhavapeddy
2003-04-05string fixes; ok miod henningTheo de Raadt
2002-07-044 unchecked mallocs; cloder@acm.orgTheo de Raadt
2002-03-05patch(1) is now free, thanks Larry!Niklas Hallqvist
1999-12-04avoid overflowsNiels Provos
1999-08-31patch file should hold at least one patch, otherwise we're entitled toMarc Espie
1998-11-25add -CMarc Espie
1997-09-22Start of -Wall and cleaning up icky bits.Todd 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
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