summaryrefslogtreecommitdiff
path: root/usr.bin/patch
AgeCommit message (Expand)Author
2022-08-03fix locate_hunk in empty filesOmar Polo
2022-08-03fix dwim for reversed patchesOmar Polo
2022-03-31man pages: add missing commas between subordinate and main clausesChristian Weisgerber
2022-02-18Avoid gendered language in man pages when not referring to a specificJonathan Gray
2021-12-21state up front that patch(1) operates on text files,Ingo Schwarze
2021-11-09-i may not be specified multiple times; from josh grosseJason McIntyre
2021-10-24For open/openat, if the flags parameter does not contain O_CREAT, theTheo de Raadt
2020-10-12Accommodate POSIX basename(3) that takes a non-const parameter andChristian Weisgerber
2019-12-11Merge existing decls and decls introduced in rev 1.10Jeremie Courreges-Anglas
2019-12-09Move RCS Id to the top of the fileJeremie Courreges-Anglas
2019-12-02Tweak previous, using fputs here was fineJeremie Courreges-Anglas
2019-12-02Use getline(3) to handle lines longer than 8192 bytes in patch filesJeremie Courreges-Anglas
2019-08-17signal handlers should not call exit() due to possibility of reenteringTheo de Raadt
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-06-28mkstemp() returns -1 on failureTheo de Raadt
2018-12-30Delete unnecessary <libgen.h> #includesPhilip Guenther
2018-06-22Add --dry-run as synonym to -C/--check.Vadim Zhukov
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.Philip Guenther
2018-04-11Stop telling patch(1) runs ed(1).Vadim Zhukov
2018-04-07Remove unused pathnames.h header since patch was refactoring into not invokinganton
2017-12-20Fix adding and removing files with git-style a/ b/ diffs: only skipTheo Buehler
2017-06-12rejname[] is also -r option buffer, and should be PATH_MAXTheo de Raadt
2017-05-30Unbreak previous for git diffs that do not have the a/ prefix.Florian Obser
2017-05-26sometimes patches coming from other places have extra a/ and b/ directoriesTed Unangst
2017-03-26One string buffer can use recallocarray() to ensure that the address spaceTheo de Raadt
2017-03-25parameter "lines_allocated" is a local pointer and should not be confusedTheo de Raadt
2016-09-02Fix 'c'hange command handling if last line of a file is removed.Tobias Stoeckmann
2016-09-02If reading fails, do not go into infinite loop asking for a filenameOtto Moerbeek
2016-07-19Cleanup close(open idioms.Theo de Raadt
2016-02-22Properly handle ed-files which fully replace input file content. ThisTobias Stoeckmann
2016-01-04usage() should exit 2 here, not EXIT_SUCCESSGleydson Soares
2015-12-29fix exit status on pledge(2) failure.Gleydson Soares
2015-11-11exit() after perror() for pledge failure. Perhaps this got introducedTheo de Raadt
2015-11-11creat() -> open equiv; from Frederic NowakTheo de Raadt
2015-10-16Add native support for ed-style diffs. No need to pledge "proc exec" anymore.Tobias Stoeckmann
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-07patch(1) can move to "stdio rpath wpath cpath tmppath fattr proc exec"Theo de Raadt
2015-10-04remove tame "proc". it is not useful, because the "ed" diffs requireTheo de Raadt
2015-10-03As pointed out by tobiasu, ed-style patches still use popen() and executeTheo de Raadt
2015-10-03patch appears to work fully with tame "stdio rpath wpath cpath tmppath fattr".Theo de Raadt
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-03-13remove the first comma from constructs like ", and," and ", or,": you can useJason McIntyre
2015-02-05Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@Todd C. Miller
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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-09Fix division by zero for files with long lines (> 1024) in Plan B modeTobias Stoeckmann
2014-12-08spacesTheo de Raadt
2014-12-01three trivial reallocarray() usesTheo de Raadt