summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/patch.c
AgeCommit message (Expand)AuthorFilesLines
2019-12-02Use getline(3) to handle lines longer than 8192 bytes in patch filesjca1-2/+8
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-2/+2
2019-06-28mkstemp() returns -1 on failurederaadt1-5/+5
2018-06-22Add --dry-run as synonym to -C/--check.zhuk1-1/+2
2018-04-07Remove unused pathnames.h header since patch was refactoring into not invokinganton1-2/+2
2017-06-12rejname[] is also -r option buffer, and should be PATH_MAXderaadt1-2/+2
2016-01-04usage() should exit 2 here, not EXIT_SUCCESSgsoares1-2/+2
2015-12-29fix exit status on pledge(2) failure.gsoares1-2/+2
2015-11-11exit() after perror() for pledge failure. Perhaps this got introducedderaadt1-2/+4
2015-10-16Add native support for ed-style diffs. No need to pledge "proc exec" anymore.tobias1-7/+9
2015-10-09Change all tame callers to namechange to pledge(2).deraadt1-3/+3
2015-10-07patch(1) can move to "stdio rpath wpath cpath tmppath fattr proc exec"deraadt1-2/+2
2015-10-04remove tame "proc". it is not useful, because the "ed" diffs requirederaadt1-2/+2
2015-10-03As pointed out by tobiasu, ed-style patches still use popen() and executederaadt1-2/+2
2015-10-03patch appears to work fully with tame "stdio rpath wpath cpath tmppath fattr".deraadt1-1/+4
2014-12-13The function savestr allows NULL return values during Plan A patching so intobias1-8/+8
2014-12-08spacesderaadt1-3/+3
2014-11-26Prefer setvbuf() to setlinebuf() for portability; ok deraadt@millert1-3/+3
2013-11-26unsigned char casts for ctypederaadt1-7/+7
2012-05-15Fix confusing patch(1) output on failure when using -C. Frommillert1-8/+7
2010-07-24Send normal output to stdout instead of everything to stderr. Thisray1-5/+3
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-5/+1
2009-04-05If no patch can be found in input, in addition to complaining on stderr,stsp1-2/+10
2008-08-20The code to detect multiple applied diffs to empty files I introduced 4otto1-9/+3
2007-04-18adds a detailed synopsis to the man page; sorts options insobrado1-5/+6
2006-03-11type police and assorted cleanup. From Lionel Fourquaux; ok ray@otto1-3/+3
2004-11-19Write reject file in unified format if the original diff was inotto1-4/+84
2004-09-14remove unused variablederaadt1-4/+3
2004-07-09Properly detect if a patch already has been applied, even if thereotto1-2/+17
2004-06-18Unbreak handling of standard diffs (which have an empty context).otto1-4/+9
2004-06-14Teach patch(1) to detect if a diff creating a file (or one addingotto1-5/+5
2003-10-31o fairly major man page reorganizationmillert1-9/+12
2003-08-10Do not add an extra newline at the end if the last line of the inputotto1-15/+24
2003-08-10Warn if the diff is a context or unified diff and the contextotto1-3/+10
2003-08-01- use stdbool.h instead of roll-your-own booleansotto1-59/+58
2003-07-31Historically, patch would treat a bare -p as -p0. This contradictsmillert1-6/+6
2003-07-31Print a maximum of one invalid line number warning per patch in a patch file.otto1-2/+4
2003-07-30Add POSIX -i option; tedu@ OKmillert1-9/+19
2003-07-29o add pathnames.hmillert1-20/+23
2003-07-28minor knf and cleanups; otto okderaadt1-8/+8
2003-07-28Be more exact on how backup files are handled.otto1-59/+114
2003-07-28Make patch(1) exit value match POSIX and be consistent with diff.millert1-9/+7
2003-07-25Add POSIX -b option but don't change the default beahvior wrt backupsmillert1-10/+28
2003-07-23New version of invalid line number fix. Passes patch(1) regressions.otto1-7/+16
2003-07-22Make rejname[] static to patch.c and crank its size to NAME_MAX+1millert1-3/+8
2003-07-22Use getopt_long() to parse options instead of rolling our own.millert1-204/+141
2003-07-22More cleanup.otto1-73/+66
2003-07-21Back out invalid line number fix. It core dumps in some cases. Problem found byotto1-8/+3
2003-07-21fix headerderaadt1-2/+2
2003-07-21knf and other cleanup; ok ottoderaadt1-751/+717