summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch (follow)
Commit message (Expand)AuthorAgeFilesLines
* Delete unnecessary <libgen.h> #includesguenther2018-12-301-2/+1
* Add --dry-run as synonym to -C/--check.zhuk2018-06-222-4/+5
* Use <fcntl.h> instead of <sys/file.h> for open() and friends.guenther2018-04-261-4/+2
* Stop telling patch(1) runs ed(1).zhuk2018-04-111-8/+2
* Remove unused pathnames.h header since patch was refactoring into not invokinganton2018-04-074-17/+4
* Fix adding and removing files with git-style a/ b/ diffs: only skiptb2017-12-201-3/+5
* rejname[] is also -r option buffer, and should be PATH_MAXderaadt2017-06-121-2/+2
* Unbreak previous for git diffs that do not have the a/ prefix.florian2017-05-301-2/+2
* sometimes patches coming from other places have extra a/ and b/ directoriestedu2017-05-261-7/+15
* One string buffer can use recallocarray() to ensure that the address spacederaadt2017-03-261-2/+2
* parameter "lines_allocated" is a local pointer and should not be confusedderaadt2017-03-251-5/+5
* Fix 'c'hange command handling if last line of a file is removed.tobias2016-09-021-2/+3
* If reading fails, do not go into infinite loop asking for a filenameotto2016-09-021-3/+5
* Cleanup close(open idioms.deraadt2016-07-191-2/+6
* Properly handle ed-files which fully replace input file content. Thistobias2016-02-221-18/+11
* 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
* creat() -> open equiv; from Frederic Nowakderaadt2015-11-111-2/+2
* Add native support for ed-style diffs. No need to pledge "proc exec" anymore.tobias2015-10-166-96/+386
* 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
* Account for newlines in substitution (s///) commands. Substitutionmillert2015-07-311-2/+14
* Remove support for automatically checking files out of RCS. Themillert2015-07-266-133/+20
* remove the first comma from constructs like ", and," and ", or,": you can usejmc2015-03-131-3/+3
* Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@millert2015-02-052-3/+4
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-4/+3
* Handle ed command "s" as a one line command, which it is.tobias2014-12-141-3/+3
* The function savestr allows NULL return values during Plan A patching so intobias2014-12-134-17/+34
* Fix division by zero for files with long lines (> 1024) in Plan B modetobias2014-12-091-19/+37
* spacesderaadt2014-12-082-5/+5
* three trivial reallocarray() usesderaadt2014-12-011-4/+4
* Prefer setvbuf() to setlinebuf() for portability; ok deraadt@millert2014-11-261-3/+3
* Properly validate line ranges supplied in diff file to prevent overflows.tobias2014-11-261-4/+27
* Introduce strtolinenum to properly check line numbers while parsing:tobias2014-11-252-33/+51
* Prevent null pointer dereference on empty input files when diff requirestobias2014-11-251-2/+2
* Remove SCCS support. For this to work, we would need "get", which we don'ttobias2014-11-225-23/+12
* Remove the README. It history from more than 20 years ago, and whilederaadt2014-11-211-123/+0
* Avoid iterating over end of string.tobias2014-11-181-3/+3
* Check fstat return value. Also, use off_t for file size and offsets astobias2014-11-171-37/+39
* Call munmap with the same size argument as mmap.tobias2014-11-151-2/+2
* userland reallocarray audit.doug2014-10-081-2/+2
* Use errc/warnc to simplify code.guenther2014-05-201-2/+2
* patch was moved from user portability (UP) to base in issue 7jmc2014-04-151-8/+5
* unsigned char casts for ctypederaadt2013-11-265-44/+49
* pull in local .h files to satisfy protoderaadt2013-11-121-1/+4
* Bring file selection in accordance with the man page; from Stefan Esserotto2013-07-111-35/+33