OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.66 / (download) - annotate - [select for diffs], Wed Jul 12 15:45:34 2023 UTC (10 months, 1 week ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.65: +3 -2 lines
Diff to previous 1.65 (colored)

Don't run off the end of path if it ends in /.
OK op, sthen

Revision 1.65 / (download) - annotate - [select for diffs], Wed Jul 12 15:44:47 2023 UTC (10 months, 1 week ago) by florian
Branch: MAIN
Changes since 1.64: +6 -3 lines
Diff to previous 1.64 (colored)

basename(3) can fail, prevent segfault in strlen(3).
OK tb, sthen

Revision 1.64 / (download) - annotate - [select for diffs], Wed Jul 12 11:26:13 2023 UTC (10 months, 1 week ago) by tb
Branch: MAIN
Changes since 1.63: +7 -7 lines
Diff to previous 1.63 (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.63 / (download) - annotate - [select for diffs], Mon Dec 26 19:16:02 2022 UTC (16 months, 3 weeks ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

spelling fixes; from paul tagliamonte
amendments to his diff are noted on tech

Revision 1.62 / (download) - annotate - [select for diffs], Mon Dec 2 22:23:19 2019 UTC (4 years, 5 months ago) by jca
Branch: MAIN
CVS Tags: 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.61: +2 -2 lines
Diff to previous 1.61 (colored)

Tweak previous, using fputs here was fine

Revision 1.61 / (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.60: +41 -37 lines
Diff to previous 1.60 (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.60 / (download) - annotate - [select for diffs], Sat Apr 7 14:55:13 2018 UTC (6 years, 1 month ago) by anton
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
Changes since 1.59: +1 -2 lines
Diff to previous 1.59 (colored)

Remove unused pathnames.h header since patch was refactoring into not invoking
ed back in 2015; ok millert@ tb@ tobias@

Revision 1.59 / (download) - annotate - [select for diffs], Wed Dec 20 21:08:06 2017 UTC (6 years, 4 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.58: +5 -3 lines
Diff to previous 1.58 (colored)

Fix adding and removing files with git-style a/ b/ diffs: only skip
six letters if they actually match "--- a/" and "+++ b/" instead of
laxer checks.

ok tom, tedu, millert

Revision 1.58 / (download) - annotate - [select for diffs], Tue May 30 06:55:40 2017 UTC (6 years, 11 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

Unbreak previous for git diffs that do not have the a/ prefix.
Found the hard way be me, OK tedu

Revision 1.57 / (download) - annotate - [select for diffs], Fri May 26 20:27:02 2017 UTC (6 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.56: +15 -7 lines
Diff to previous 1.56 (colored)

sometimes patches coming from other places have extra a/ and b/ directories
prepended to filenames. detect this condition and attempt to correct it.
ok openbsd

Revision 1.56 / (download) - annotate - [select for diffs], Sun Mar 26 15:28:12 2017 UTC (7 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

One string buffer can use recallocarray() to ensure that the address space
doesn't get dribbled with known contents.
ok otto millert tobias

Revision 1.55 / (download) - annotate - [select for diffs], Fri Sep 2 09:48:03 2016 UTC (7 years, 8 months ago) by otto
Branch: MAIN
Changes since 1.54: +5 -3 lines
Diff to previous 1.54 (colored)

If reading fails, do not go into infinite loop asking for a filename
Happens in bulf build where no tty is available.
ok sthen@ naddy@ $(jot -b yes 1000) landry@

Revision 1.54 / (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_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.53: +7 -85 lines
Diff to previous 1.53 (colored)

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

ok deraadt

Revision 1.51.2.2 / (download) - annotate - [select for diffs], Fri Jul 31 18:34:30 2015 UTC (8 years, 9 months ago) by krw
Branch: OPENBSD_5_7
Changes since 1.51.2.1: +14 -2 lines
Diff to previous 1.51.2.1 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored)

Backport rev 1.53 by millert:
Account for newlines in substitution (s///) commands.  Substitution
commands might contain a newline in the replacement pattern (escaped
with a backslash before it), causing patch's understanding of the
state the ed child process is in to diverge from reality. This can
lead to patch unwillingly feeding '!' (execute shell command) lines
to ed.  From Martin Natano.  OK deraadt@

Revision 1.41.6.2 / (download) - annotate - [select for diffs], Fri Jul 31 18:21:58 2015 UTC (8 years, 9 months ago) by krw
Branch: OPENBSD_5_6
Changes since 1.41.6.1: +14 -2 lines
Diff to previous 1.41.6.1 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored)

Backport rev 1.53 by millert:
Account for newlines in substitution (s///) commands.  Substitution
commands might contain a newline in the replacement pattern (escaped
with a backslash before it), causing patch's understanding of the
state the ed child process is in to diverge from reality. This can
lead to patch unwillingly feeding '!' (execute shell command) lines
to ed.  From Martin Natano.  OK deraadt@

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jul 31 00:24:14 2015 UTC (8 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.52: +14 -2 lines
Diff to previous 1.52 (colored)

Account for newlines in substitution (s///) commands.  Substitution
commands might contain a newline in the replacement pattern (escaped
with a backslash before it), causing patch's understanding of the
state the ed child process is in to diverge from reality. This can
lead to patch unwillingly feeding '!' (execute shell command) lines
to ed.  From Martin Natano.  OK deraadt@

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Mon Jul 27 16:10:54 2015 UTC (8 years, 9 months ago) by krw
Branch: OPENBSD_5_7
Changes since 1.51: +11 -27 lines
Diff to previous 1.51 (colored)

Backport commit of 2015-07-26 14:32 by millert

Remove support for automatically checking files out of RCS.  The
behavior is confusing to users and even GNU patch no longer does
it by default.  OK krw@ guenther@

Revision 1.41.6.1 / (download) - annotate - [select for diffs], Mon Jul 27 16:08:18 2015 UTC (8 years, 9 months ago) by guenther
Branch: OPENBSD_5_6
Changes since 1.41: +11 -27 lines
Diff to previous 1.41 (colored)

Backport commit of 2014-11-22 15:49 by tobias:
Remove SCCS support.  For this to work, we would need "get", which we don't     even have in ports.  XSI functionality of POSIX, therefore optional.

ok deraadt, schwarze, tedu

Revision 1.52 / (download) - annotate - [select for diffs], Sun Jul 26 14:32:19 2015 UTC (8 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.51: +11 -27 lines
Diff to previous 1.51 (colored)

Remove support for automatically checking files out of RCS.  The
behavior is confusing to users and even GNU patch no longer does
it by default.  OK krw@ guenther@

Revision 1.51 / (download) - annotate - [select for diffs], Thu Feb 5 12:59:57 2015 UTC (9 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE
Branch point for: OPENBSD_5_7
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored)

Include stdint.h, not limits.h to get SIZE_MAX.  OK guenther@

Revision 1.50 / (download) - annotate - [select for diffs], Sun Dec 14 09:12:59 2014 UTC (9 years, 5 months ago) by tobias
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

Handle ed command "s" as a one line command, which it is.
Prevents arbitrary ed command executions in following lines.

ok millert

Revision 1.49 / (download) - annotate - [select for diffs], Sat Dec 13 10:31:07 2014 UTC (9 years, 5 months ago) by tobias
Branch: MAIN
Changes since 1.48: +7 -7 lines
Diff to previous 1.48 (colored)

The function savestr allows NULL return values during Plan A patching so in
case of out of memory conditions, Plan B can step in.  In many cases, NULL
value is not properly handled, so use xstrdup here (it's outside Plan A/B
patching, which means that even Plan B relies on successful operations).

Revision 1.48 / (download) - annotate - [select for diffs], Mon Dec 8 21:59:36 2014 UTC (9 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

spaces

Revision 1.47 / (download) - annotate - [select for diffs], Mon Dec 1 06:38:04 2014 UTC (9 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored)

three trivial reallocarray() uses

Revision 1.46 / (download) - annotate - [select for diffs], Wed Nov 26 10:11:21 2014 UTC (9 years, 5 months ago) by tobias
Branch: MAIN
Changes since 1.45: +27 -4 lines
Diff to previous 1.45 (colored)

Properly validate line ranges supplied in diff file to prevent overflows.
Also fixes an out of boundary memory access because the resulting values
are used as array indices.

ok millert

Revision 1.45 / (download) - annotate - [select for diffs], Tue Nov 25 10:26:07 2014 UTC (9 years, 5 months ago) by tobias
Branch: MAIN
Changes since 1.44: +48 -32 lines
Diff to previous 1.44 (colored)

Introduce strtolinenum to properly check line numbers while parsing:
no signs, no spaces, just digits, 0 <= x <= LONG_MAX

ok millert, otto

Revision 1.44 / (download) - annotate - [select for diffs], Sat Nov 22 15:49:28 2014 UTC (9 years, 5 months ago) by tobias
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

Remove SCCS support.  For this to work, we would need "get", which we don't
even have in ports.  XSI functionality of POSIX, therefore optional.

ok deraadt, schwarze, tedu

Revision 1.43 / (download) - annotate - [select for diffs], Tue Nov 18 17:03:35 2014 UTC (9 years, 6 months ago) by tobias
Branch: MAIN
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

Avoid iterating over end of string.

ok millert, otto

Revision 1.42 / (download) - annotate - [select for diffs], Mon Nov 17 10:58:09 2014 UTC (9 years, 6 months ago) by tobias
Branch: MAIN
Changes since 1.41: +39 -37 lines
Diff to previous 1.41 (colored)

Check fstat return value.  Also, use off_t for file size and offsets as
suggested by bluhm@.

ok schwarze@

Revision 1.41 / (download) - annotate - [select for diffs], Tue Nov 26 13:19:07 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_5_BASE, OPENBSD_5_5
Branch point for: OPENBSD_5_6
Changes since 1.40: +28 -25 lines
Diff to previous 1.40 (colored)

unsigned char casts for ctype
ok krw

Revision 1.40 / (download) - annotate - [select for diffs], Thu Jul 11 12:39:31 2013 UTC (10 years, 10 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.39: +33 -35 lines
Diff to previous 1.39 (colored)

Bring file selection in accordance with the man page; from Stefan Esser
ok millert@

Revision 1.39 / (download) - annotate - [select for diffs], Wed Apr 11 08:07:13 2012 UTC (12 years, 1 month ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.38: +3 -1 lines
Diff to previous 1.38 (colored)

Silence gcc warnings.

ok deraadt@

Revision 1.38 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:41 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: 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
Changes since 1.37: +1 -5 lines
Diff to previous 1.37 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.37 / (download) - annotate - [select for diffs], Sun Sep 2 15:19:33 2007 UTC (16 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: 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
Changes since 1.36: +5 -5 lines
Diff to previous 1.36 (colored)

use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg

Revision 1.36 / (download) - annotate - [select for diffs], Sat Mar 11 19:41:30 2006 UTC (18 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.35: +3 -4 lines
Diff to previous 1.35 (colored)

type police and assorted cleanup. From Lionel Fourquaux; ok ray@

Revision 1.35 / (download) - annotate - [select for diffs], Thu Aug 5 21:47:24 2004 UTC (19 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: 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
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

spacing

Revision 1.34 / (download) - annotate - [select for diffs], Fri Jul 9 19:13:46 2004 UTC (19 years, 10 months ago) by otto
Branch: MAIN
Changes since 1.33: +8 -2 lines
Diff to previous 1.33 (colored)

Properly detect if a patch already has been applied, even if there
are no eols at eofs involved. Tested by quite some people.

ok deraadt@

Revision 1.33 / (download) - annotate - [select for diffs], Wed Jan 28 08:31:07 2004 UTC (20 years, 3 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Fix a segv when patch cannot find a file and the user indicates
to use the file anyway. Problem found by david@

ok david@ millert@

Revision 1.32 / (download) - annotate - [select for diffs], Fri Oct 31 20:20:45 2003 UTC (20 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.31: +184 -64 lines
Diff to previous 1.31 (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.31 / (download) - annotate - [select for diffs], Sun Sep 28 07:55:19 2003 UTC (20 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.30: +27 -7 lines
Diff to previous 1.30 (colored)

realloc(3) cleanup.

ok cloder@ tedu@

Revision 1.30 / (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.29: +28 -2 lines
Diff to previous 1.29 (colored)

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

ok deraadt@

Revision 1.29 / (download) - annotate - [select for diffs], Tue Aug 5 18:20:33 2003 UTC (20 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.28: +8 -8 lines
Diff to previous 1.28 (colored)

spacing

Revision 1.28 / (download) - annotate - [select for diffs], Fri Aug 1 20:30:48 2003 UTC (20 years, 9 months ago) by otto
Branch: MAIN
Changes since 1.27: +97 -91 lines
Diff to previous 1.27 (colored)

- use stdbool.h instead of roll-your-own booleans
- fix some -Wall warnings
- fix asserts: in some cases remove them, in other cases they have
become Internal errors or detection of malformed patch files.
- fix some free() related code

ok millert@ tedu@

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jul 29 20:10:17 2003 UTC (20 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.26: +5 -6 lines
Diff to previous 1.26 (colored)

o add pathnames.h
o ignore empty TMPDIR environment variable
o strip any trailing slashes from TMPDIR
otto@ OK

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jul 28 19:15:34 2003 UTC (20 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.25: +11 -13 lines
Diff to previous 1.25 (colored)

minor knf and cleanups; otto ok

Revision 1.25 / (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.24: +29 -26 lines
Diff to previous 1.24 (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.24 / (download) - annotate - [select for diffs], Fri Jul 25 02:12:45 2003 UTC (20 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.23: +6 -4 lines
Diff to previous 1.23 (colored)

Add POSIX -b option but don't change the default beahvior wrt backups
yet.  The old -b option is now -z (matches GNU patch).

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jul 22 17:52:20 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

just about nothing

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jul 22 17:20:53 2003 UTC (20 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.21: +5 -6 lines
Diff to previous 1.21 (colored)

POSIX defines allowed commands as {a,c,d,i,s} but patch was only
recognizing {a,c,d}.  We need to recognize 's' (substitute) for the
"dot alone on a line" bug fix in diff(1).

Revision 1.21 / (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.20: +107 -103 lines
Diff to previous 1.20 (colored)

More cleanup.
ok millert@ tedu@

Revision 1.20 / (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.19: +2 -2 lines
Diff to previous 1.19 (colored)

fix header

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

remove a bit more junk

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

knf

Revision 1.17 / (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.16: +1181 -1168 lines
Diff to previous 1.16 (colored)

knf and other cleanup; ok otto

Revision 1.16 / (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.15: +95 -95 lines
Diff to previous 1.15 (colored)

remove junk; ok otto tedu

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jul 17 19:16:31 2003 UTC (20 years, 10 months ago) by otto
Branch: MAIN
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

Fix merge error.
ok millert@ tedu@

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jul 16 18:09:20 2003 UTC (20 years, 10 months ago) by otto
Branch: MAIN
Changes since 1.13: +63 -2 lines
Diff to previous 1.13 (colored)

Teach patch how to deal with \ No newline at end of file.
From NetBSD.
ok deraadt@

Revision 1.13 / (download) - annotate - [select for diffs], Tue Apr 8 00:18:31 2003 UTC (21 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

strcpy trashing, help from tedu; ok tedu

Revision 1.12 / (download) - annotate - [select for diffs], Sat Apr 5 17:17:53 2003 UTC (21 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.11: +11 -9 lines
Diff to previous 1.11 (colored)

string fixes; ok miod henning

Revision 1.11 / (download) - annotate - [select for diffs], Thu Dec 14 00:02:19 2000 UTC (23 years, 5 months ago) by beck
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
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored)

make patch -f and -b actually skip patches for which the file can't be
found, instead of claiming it will and erroring out anyway.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Dec 4 01:01:07 1999 UTC (24 years, 5 months ago) by provos
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.9: +7 -7 lines
Diff to previous 1.9 (colored)

avoid overflows

Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 25 00:30:26 1998 UTC (25 years, 5 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.8: +10 -7 lines
Diff to previous 1.8 (colored)

add -C

Revision 1.8 / (download) - annotate - [select for diffs], Thu Apr 3 07:07:36 1997 UTC (27 years, 1 month ago) by imp
Branch: MAIN
CVS Tags: 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
Changes since 1.7: +5 -5 lines
Diff to previous 1.7 (colored)

From FreeBSD 1.7 by markm.  The log message:
Priorities were broken. If there was an Index: line and ***/--- lines
with valid names, the ***/---names were taken first.
this broke eg:
Index: foo/Makefile
==========
RCS <blah>
Retrieving <blah>
diff <blah>
*** Makefile <blah>
--- Makefile <blah>

By trying to patch the Makefile in the _curent_ directory, rather than
the one in the foo/ directory.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Sep 24 04:19:29 1996 UTC (27 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.6: +11 -8 lines
Diff to previous 1.6 (colored)

sprintf -> snprintf except where guaranteed safe.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 23 10:54:22 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +2 -4 lines
Diff to previous 1.5 (colored)

undo last; mkstemp is *hard* to do in here

Revision 1.5 / (download) - annotate - [select for diffs], Sun Sep 15 19:19:52 1996 UTC (27 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.4: +6 -4 lines
Diff to previous 1.4 (colored)

Be slightly safer opening temp files.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jul 1 20:40:10 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +2 -7 lines
Diff to previous 1.3 (colored)

undo mktemp cleanup until i get it right

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jun 25 23:06:41 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +9 -4 lines
Diff to previous 1.2 (colored)

mktemp w/ open & fdopen

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 10 11:21:33 1996 UTC (27 years, 11 months ago) by niklas
Branch: MAIN
Changes since 1.1: +3 -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.