summaryrefslogtreecommitdiff
path: root/usr.bin/patch/pch.c
AgeCommit message (Expand)Author
2025-08-30Revert "patch: fix pch_context() for unified diffs with no leading context"Kyle Evans
2025-08-29patch: fix pch_context() for unified diffs with no leading contextKyle Evans
2024-04-19patch: use getline() instead of fgetln()Martin Tournoij
2024-02-12patch: Support long context lines.Dag-Erling Smørgrav
2023-08-16Remove $FreeBSD$: one-line .h patternWarner Losh
2023-08-06patch: don't run off the end of path if it ends in '/'.Pedro F. Giffuni
2021-07-22patch: cleanup variable initialization a bit.Pedro F. Giffuni
2020-08-16Remove heuristic for dealing with trailing newlines being truncated by mailers.Warner Losh
2019-11-04patch(1): give /dev/null patches special treatmentKyle Evans
2019-03-01patch(1): Exit successfully if we're fed a 0-length patchKyle Evans
2017-12-21patch: further cleanup to git-style diffs.Pedro F. Giffuni
2017-10-09patch(1): Don't overrun line buffer in some casesKyle Evans
2017-07-02patch(1): add support for git generated diffs.Pedro F. Giffuni
2017-06-08patch: if reading fails, do not go into infinite loop asking for a filename.Pedro F. Giffuni
2017-01-02Revert r311106:Pedro F. Giffuni
2017-01-02patch(1): extend the maximum length of a line from USHRT_MAX to UINT_MAX.Pedro F. Giffuni
2016-04-24patch(1): avoid signed integer overflow when debugging.Pedro F. Giffuni
2015-10-21Fix a ton of speelling errorsEitan Adler
2015-08-15Remove automatic checkout feature.Xin LI
2015-08-05Fix shell injection vulnerability in patch(1) via ed(1) byXin LI
2015-04-20patch(1): small include changes.Pedro F. Giffuni
2014-12-25patch: Bring in xstrdup and use it when appropriate.Pedro F. Giffuni
2014-12-08patch(1): avoid line number overflowsPedro F. Giffuni
2014-12-07Small space changesPedro F. Giffuni
2014-12-06Merge fixes from OpenBSD.Pedro F. Giffuni
2014-12-05Update OpenBSD CVS revision for our r255232.Pedro F. Giffuni
2014-06-15patch: unsign the line length to avoid overflows.Pedro F. Giffuni
2014-06-14patch: cleanup some unnecessary cruft.Pedro F. Giffuni
2014-06-12Avoid zeroing during allocation.Pedro F. Giffuni
2013-09-05Fix file selection logic for the RCS/SCCS case, as was done for the simpleStefan Eßer
2013-07-03Merge r252513 from src/gnu/usr.bin/patch into src/usr.bin/patch:David E. O'Brien
2013-07-03Merge r252512 from src/gnu/usr.bin/patch into src/usr.bin/patch:David E. O'Brien
2013-05-23Fix target selection logic, which did not comply with the man page.Stefan Eßer
2013-01-29 - Refresh code with latest OpenBSD revisions.Xin LI
2013-01-29- Add a BSD-licensed patch, ported by Pedro F. Giffuni (pfg) fromGabor Kovesdan
1997-07-13kill the undeadPeter Wemm
1997-07-06Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail,Bruce Evans