summaryrefslogtreecommitdiff
path: root/usr.bin/patch
AgeCommit message (Expand)Author
2024-03-22add "-V none" to prevent making any backupsJoshua Stein
2023-10-25Fix unveil(2) in patch(1) with explicit patchfile.Alexander Bluhm
2023-07-19Partially fix interactive mode in patchTheo Buehler
2023-07-15Prevent patch(1) from scribbling all over the place.Florian Obser
2023-07-12Don't run off the end of path if it ends in /.Florian Obser
2023-07-12basename(3) can fail, prevent segfault in strlen(3).Florian Obser
2023-07-12Use ssize_t instead of short for line lengthsTheo Buehler
2022-12-26spelling fixes; from paul tagliamonteJason McIntyre
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