freebsd-src/usr.bin/patch
Kyle Evans fb37e38fbe Revert "patch: fix pch_context() for unified diffs with no leading context"
This reverts commit f97b6a8f84, as it
turns out our fuzz implementation is just too naive.  We can have more
leading context than trailing context and vice-versa, so we can't really
assume they're the same.

Restore the previous bug and we can work on it post-branch.

Reported by:	cy
2025-08-30 17:02:35 -05:00
..
tests Revert "patch: fix pch_context() for unified diffs with no leading context" 2025-08-30 17:02:35 -05:00
backupfile.c Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
backupfile.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
common.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
inp.c patch: use getline() instead of fgetln() 2024-04-19 15:52:22 -06:00
inp.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
mkpath.c Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
patch.1 Remove $FreeBSD$: one-line nroff pattern 2023-08-16 11:55:15 -06:00
patch.c patch: Support long context lines. 2024-02-12 19:26:13 +01:00
pathnames.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
pch.c Revert "patch: fix pch_context() for unified diffs with no leading context" 2025-08-30 17:02:35 -05:00
pch.h patch: Support long context lines. 2024-02-12 19:26:13 +01:00
util.c Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
util.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00