summaryrefslogtreecommitdiff
path: root/usr.bin/patch/pch.c
AgeCommit message (Expand)Author
2015-10-16Add native support for ed-style diffs. No need to pledge "proc exec" anymore.Tobias Stoeckmann
2015-07-31Account for newlines in substitution (s///) commands. SubstitutionTodd C. Miller
2015-07-26Remove support for automatically checking files out of RCS. TheTodd C. Miller
2015-02-05Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@Todd C. Miller
2014-12-14Handle ed command "s" as a one line command, which it is.Tobias Stoeckmann
2014-12-13The function savestr allows NULL return values during Plan A patching so inTobias Stoeckmann
2014-12-08spacesTheo de Raadt
2014-12-01three trivial reallocarray() usesTheo de Raadt
2014-11-26Properly validate line ranges supplied in diff file to prevent overflows.Tobias Stoeckmann
2014-11-25Introduce strtolinenum to properly check line numbers while parsing:Tobias Stoeckmann
2014-11-22Remove SCCS support. For this to work, we would need "get", which we don'tTobias Stoeckmann
2014-11-18Avoid iterating over end of string.Tobias Stoeckmann
2014-11-17Check fstat return value. Also, use off_t for file size and offsets asTobias Stoeckmann
2013-11-26unsigned char casts for ctypeTheo de Raadt
2013-07-11Bring file selection in accordance with the man page; from Stefan EsserOtto Moerbeek
2012-04-11Silence gcc warnings.Antoine Jacoutot
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2006-03-11type police and assorted cleanup. From Lionel Fourquaux; ok ray@Otto Moerbeek
2004-08-05spacingTheo de Raadt
2004-07-09Properly detect if a patch already has been applied, even if thereOtto Moerbeek
2004-01-28Fix a segv when patch cannot find a file and the user indicatesOtto Moerbeek
2003-10-31o fairly major man page reorganizationTodd C. Miller
2003-09-28realloc(3) cleanup.Otto Moerbeek
2003-08-15Add license from patch.c to original source files missing a license.Otto Moerbeek
2003-08-05spacingTheo de Raadt
2003-08-01- use stdbool.h instead of roll-your-own booleansOtto Moerbeek
2003-07-29o add pathnames.hTodd C. Miller
2003-07-28minor knf and cleanups; otto okTheo de Raadt
2003-07-28More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h,Otto Moerbeek
2003-07-25Add POSIX -b option but don't change the default beahvior wrt backupsTodd C. Miller
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
2003-07-22More cleanup.Otto Moerbeek
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
2003-07-16Teach patch how to deal with \ No newline at end of file.Otto Moerbeek
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
1999-12-04avoid overflowsNiels Provos
1998-11-25add -CMarc Espie
1997-04-03From FreeBSD 1.7 by markm. The log message:imp
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