OpenBSD CVS

CVS log for src/usr.bin/patch/pch.h


[BACK] Up to [local] / src / usr.bin / patch

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.14 / (download) - annotate - [select for diffs], Wed Jul 12 11:26:13 2023 UTC (10 months, 1 week ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Use ssize_t instead of short for line lengths

sthen hit a binary patch containing a 'line' of length > 32kB. This made
the short used for storing the line length wrap and resulted in a buffer
underflow and segfault.  This uses a larger type, which doesn't actually
fix the problem, but makes it much less likely to be hit.

ok florian otto sthen

Revision 1.13 / (download) - annotate - [select for diffs], Wed Dec 11 20:10:17 2019 UTC (4 years, 5 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.12: +9 -11 lines
Diff to previous 1.12 (colored)

Merge existing decls and decls introduced in rev 1.10

Also:
- sort declarations in the same order as definitions in pch.c
- delete an extra pfetch() declaration

ok tobias@

Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 9 12:08:42 2019 UTC (4 years, 5 months ago) by jca
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

Move RCS Id to the top of the file

Revision 1.11 / (download) - annotate - [select for diffs], Mon Dec 2 22:17:32 2019 UTC (4 years, 5 months ago) by jca
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Use getline(3) to handle lines longer than 8192 bytes in patch files

Spotted by jsg@ when working on mesa.  Diff tested by sthen@ in
a partial i386 bulk.  Input from and ok jsg@ millert@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Oct 16 07:33:47 2015 UTC (8 years, 7 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.9: +7 -2 lines
Diff to previous 1.9 (colored)

Add native support for ed-style diffs. No need to pledge "proc exec" anymore.

ok deraadt

Revision 1.9 / (download) - annotate - [select for diffs], Fri Oct 31 20:20:45 2003 UTC (20 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.8: +11 -1 lines
Diff to previous 1.8 (colored)

o fairly major man page reorganization
o add --posix option for strict POSIX conformance
o change filename determination to match GNU patch
Tested by various people, including a full ports build by naddy@

Revision 1.8 / (download) - annotate - [select for diffs], Fri Aug 15 08:00:51 2003 UTC (20 years, 9 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.7: +27 -1 lines
Diff to previous 1.7 (colored)

Add license from patch.c to original source files missing a license.

ok deraadt@

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jul 28 18:35:36 2003 UTC (20 years, 9 months ago) by otto
Branch: MAIN
Changes since 1.6: +2 -4 lines
Diff to previous 1.6 (colored)

More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h,
some rewriting of code to make it more readable and more KNF.

ok millert@ tedu@ deraadt@

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 22 17:18:49 2003 UTC (20 years, 10 months ago) by otto
Branch: MAIN
Changes since 1.5: +2 -7 lines
Diff to previous 1.5 (colored)

More cleanup.
ok millert@ tedu@

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jul 21 14:32:21 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

fix header

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jul 21 14:00:41 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +25 -25 lines
Diff to previous 1.3 (colored)

knf and other cleanup; ok otto

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jul 18 02:00:09 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +24 -24 lines
Diff to previous 1.2 (colored)

remove junk; ok otto tedu

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 10 11:21:34 1996 UTC (27 years, 11 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

Support the long options that FSF's patch version has.  $OpenBSD$ added

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:56 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:45:56 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.