History log of /src/usr.bin/patch/common.h |
Revision | | Date | Author | Comments |
1.22 |
| 25-May-2021 |
cjep | As per OpenBSD, use malloc for the line buffer. Fixes the known issue with long lines and makes our ATF test suite pass fully. Closes PR bin/54620 from coypu who suggested the approach. Reviewed by christos.
|
1.21 |
| 24-Jul-2015 |
christos | branches: 1.21.22; Use absolute paths for RCS commands (Martin Natano)
|
1.20 |
| 26-Nov-2014 |
christos | Avoid coredumps when the linenumbers in the hunks turn negative. From: http://marc.info/?l=openbsd-tech&m=141693055412785
XXX: pullup 7
|
1.19 |
| 19-Sep-2008 |
joerg | branches: 1.19.38; Update patch to the version used by DragonFly and derived from OpenBSD. Major changes are: - better detection of double applied patches - rejects remain unified diffs for unified patches - far less limitations, e.g. patch lines may be arbitrary long
This addresses PR standards/11220 by changing patch -b behavior to be POSIX compliant. Old behavior can be obtained using --suffix, which works since NetBSD 1.4. pkgsrc has been adjusted accordingly.
|
1.18 |
| 14-Oct-2007 |
lukem | Convert to using raise_default_signal(3).
|
1.17 |
| 25-Mar-2005 |
skd | branches: 1.17.12; add --dry-run like gnu patch.
|
1.16 |
| 30-Jul-2003 |
itojun | remove unused macros
|
1.15 |
| 12-Jul-2003 |
itojun | copyright missing in files, copy them from README
|
1.14 |
| 30-May-2003 |
kristerw | Remove stuff that are not needed any longer.
|
1.13 |
| 30-May-2003 |
kristerw | Simplify handling of memory allocation, and make sure all return values from malloc etc. are handled.
This removes the old behavior to retry the operation with a less memory- consuming method in case malloc failed (this mechanism has never really worked, and is hard to test. Besides, it is less useful now than it was 20 years ago when the code was written...)
|
1.12 |
| 29-May-2003 |
kristerw | Be consistent with use of types (e.g. do not use LINENUM for quantities that are not line numbers).
|
1.11 |
| 11-Mar-2002 |
kristerw | Ansify Remove unused defines Remove #ifndef lint Remove redundant and incorrect casts.
|
1.10 |
| 08-Mar-2002 |
kristerw | Ansify Remove 'register' Make local functions static. Remove most '#ifndef lint'
|
1.9 |
| 09-Feb-1999 |
sommerfe | Fix PR2429: catch doubly-applied patches which create new files.
|
1.8 |
| 22-Feb-1998 |
christos | WARNSify
|
1.7 |
| 22-Nov-1997 |
augustss | Increase maximum line length. (Prompted by trying to use the FreeBSD ghostscript package.)
|
1.6 |
| 22-Mar-1997 |
lukem | branches: 1.6.2; use mkstemp() instead of mktemp() to create the tempfile
|
1.5 |
| 19-Sep-1996 |
thorpej | RCS id police.
|
1.4 |
| 24-Dec-1994 |
cgd | headers and redundant declarations.
|
1.3 |
| 28-Mar-1994 |
cgd | kill lseek def'n. the entire thing needs cleanup badly
|
1.2 |
| 02-Aug-1993 |
mycroft | Add RCS identifiers, remove some completely useless RCS logs and patchkit headers, and a few other insignificant changes.
|
1.1 |
| 09-Apr-1993 |
cgd | branches: 1.1.1; patch 2.0.12u8, from prep.ai.mit.edu. this is not under the GPL.
|
1.1.1.1 |
| 09-Jan-1997 |
tls | Import from 4.4BSD-Lite2
|
1.6.2.1 |
| 27-Nov-1997 |
mellon | Pull rev 1.7 up from trunk (augustss)
|
1.17.12.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.19.38.2 |
| 04-Aug-2015 |
snj | Pull up following revision(s) (requested by christos in ticket #918): usr.bin/patch/patch.1: revisions 1.18, 1.19 usr.bin/patch/common.h: revision 1.21 usr.bin/patch/inp.c: revision 1.24 From Martin Natano @bitrig: Use execve(2) instead of system to apply patches that require rcs command execution instead system(3) to avoid malicious filenames in patches causing bad things to happen. In the process, lose SCCS support. It is not like we are shipping sccs commands for that to work. -- Use absolute paths for RCS commands (Martin Natano) -- remove reference to SCCS which is not supported anymore. -- Fix two typos.
|
1.19.38.1 |
| 28-Nov-2014 |
martin | Pull up following revision(s) (requested by christos in ticket #270): usr.bin/patch/common.h: revision 1.20 usr.bin/patch/pch.c: revision 1.26 usr.bin/patch/pch.c: revision 1.27 Avoid coredumps when the linenumbers in the hunks turn negative. From OpenBSD. PR/49422: Ryo ONODERA: patch(1) cannot handle context diffs
|
1.21.22.1 |
| 31-May-2021 |
cjep | sync with head
|