summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/patch.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* Use getline(3) to handle lines longer than 8192 bytes in patch filesjca2019-12-021-2/+8
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-2/+2
* mkstemp() returns -1 on failurederaadt2019-06-281-5/+5
* Add --dry-run as synonym to -C/--check.zhuk2018-06-221-1/+2
* Remove unused pathnames.h header since patch was refactoring into not invokinganton2018-04-071-2/+2
* rejname[] is also -r option buffer, and should be PATH_MAXderaadt2017-06-121-2/+2
* usage() should exit 2 here, not EXIT_SUCCESSgsoares2016-01-041-2/+2
* fix exit status on pledge(2) failure.gsoares2015-12-291-2/+2
* exit() after perror() for pledge failure. Perhaps this got introducedderaadt2015-11-111-2/+4
* Add native support for ed-style diffs. No need to pledge "proc exec" anymore.tobias2015-10-161-7/+9
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-3/+3
* patch(1) can move to "stdio rpath wpath cpath tmppath fattr proc exec"deraadt2015-10-071-2/+2
* remove tame "proc". it is not useful, because the "ed" diffs requirederaadt2015-10-041-2/+2
* As pointed out by tobiasu, ed-style patches still use popen() and executederaadt2015-10-031-2/+2
* patch appears to work fully with tame "stdio rpath wpath cpath tmppath fattr".deraadt2015-10-031-1/+4
* The function savestr allows NULL return values during Plan A patching so intobias2014-12-131-8/+8
* spacesderaadt2014-12-081-3/+3
* Prefer setvbuf() to setlinebuf() for portability; ok deraadt@millert2014-11-261-3/+3
* unsigned char casts for ctypederaadt2013-11-261-7/+7
* Fix confusing patch(1) output on failure when using -C. Frommillert2012-05-151-8/+7
* Send normal output to stdout instead of everything to stderr. Thisray2010-07-241-5/+3
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-5/+1
* If no patch can be found in input, in addition to complaining on stderr,stsp2009-04-051-2/+10
* The code to detect multiple applied diffs to empty files I introduced 4otto2008-08-201-9/+3
* adds a detailed synopsis to the man page; sorts options insobrado2007-04-181-5/+6
* type police and assorted cleanup. From Lionel Fourquaux; ok ray@otto2006-03-111-3/+3
* Write reject file in unified format if the original diff was inotto2004-11-191-4/+84
* remove unused variablederaadt2004-09-141-4/+3
* Properly detect if a patch already has been applied, even if thereotto2004-07-091-2/+17
* Unbreak handling of standard diffs (which have an empty context).otto2004-06-181-4/+9
* Teach patch(1) to detect if a diff creating a file (or one addingotto2004-06-141-5/+5
* o fairly major man page reorganizationmillert2003-10-311-9/+12
* Do not add an extra newline at the end if the last line of the inputotto2003-08-101-15/+24
* Warn if the diff is a context or unified diff and the contextotto2003-08-101-3/+10
* - use stdbool.h instead of roll-your-own booleansotto2003-08-011-59/+58
* Historically, patch would treat a bare -p as -p0. This contradictsmillert2003-07-311-6/+6
* Print a maximum of one invalid line number warning per patch in a patch file.otto2003-07-311-2/+4
* Add POSIX -i option; tedu@ OKmillert2003-07-301-9/+19
* o add pathnames.hmillert2003-07-291-20/+23
* minor knf and cleanups; otto okderaadt2003-07-281-8/+8
* Be more exact on how backup files are handled.otto2003-07-281-59/+114
* Make patch(1) exit value match POSIX and be consistent with diff.millert2003-07-281-9/+7
* Add POSIX -b option but don't change the default beahvior wrt backupsmillert2003-07-251-10/+28
* New version of invalid line number fix. Passes patch(1) regressions.otto2003-07-231-7/+16
* Make rejname[] static to patch.c and crank its size to NAME_MAX+1millert2003-07-221-3/+8
* Use getopt_long() to parse options instead of rolling our own.millert2003-07-221-204/+141
* More cleanup.otto2003-07-221-73/+66
* Back out invalid line number fix. It core dumps in some cases. Problem found byotto2003-07-211-8/+3
* fix headerderaadt2003-07-211-2/+2
* knf and other cleanup; ok ottoderaadt2003-07-211-781/+747