History log of /dflybsd-src/usr.bin/patch/pch.c (Results 1 – 11 of 11)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v6.4.0, v6.4.0rc1, v6.5.0, v6.2.2, v6.2.1, v6.3.0, v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0, v5.8.3, v5.8.2
# b94b84ca 26-May-2020 Daniel Fojt <df@neosystem.org>

patch(1): sync with FreeBSD to version 2.0-12u11

Summary of notable changes from previous sync:

- add -Vnone option to disable backup files
- avoid infinite loop asking for a filename
- add support

patch(1): sync with FreeBSD to version 2.0-12u11

Summary of notable changes from previous sync:

- add -Vnone option to disable backup files
- avoid infinite loop asking for a filename
- add support for git generated diffs
- don't overrun line buffer in some cases
- fix the file removal test
- give /dev/null patches special treatment

show more ...


Revision tags: v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3, v5.6.2, v5.6.1, v5.6.0, v5.6.0rc1, v5.7.0, v5.4.3, v5.4.2, v5.4.1, v5.4.0, v5.5.0, v5.4.0rc1, v5.2.2, v5.2.1, v5.2.0, v5.3.0, v5.2.0rc, v5.0.2, v5.0.1, v5.0.0, v5.0.0rc2, v5.1.0, v5.0.0rc1, v4.8.1, v4.8.0, v4.6.2, v4.9.0, v4.8.0rc, v4.6.1, v4.6.0, v4.6.0rc2, v4.6.0rc, v4.7.0, v4.4.3, v4.4.2, v4.4.1, v4.4.0, v4.5.0, v4.4.0rc
# e4bdac6b 15-Aug-2015 Matthew Dillon <dillon@apollo.backplane.com>

patch - Fix shell injection vulnerability

* Fix shell injection vulnerability in patch(1) via ed(1) by
tightening sanity check of the input. [1]

* While I'm there also replace ed(1) with red(1) b

patch - Fix shell injection vulnerability

* Fix shell injection vulnerability in patch(1) via ed(1) by
tightening sanity check of the input. [1]

* While I'm there also replace ed(1) with red(1) because we do
not need the unrestricted functionality.

Obtained from: Bitrig [1], and discussions w/ FreeBSD
Security: CVE-2015-1418 [1]

show more ...


Revision tags: v4.2.4, v4.3.1, v4.2.3, v4.2.1, v4.2.0, v4.0.6, v4.3.0, v4.2.0rc, v4.0.5, v4.0.4, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v4.0.0rc3, v4.0.0rc2, v4.0.0rc, v4.1.0, v3.8.2, v3.8.1, v3.6.3
# e19e5bbc 08-Jun-2014 Joris Giovannangeli <joris@giovannangeli.fr>

patch: use size_t for line len.

* allow file with lines longer than sizeof(short)

Submitted-by: tautolog


Revision tags: v3.8.0, v3.8.0rc2, v3.9.0, v3.8.0rc, v3.6.2, v3.6.1
# 5027f2b8 06-Feb-2014 John Marino <draco@marino.st>

patch(1): Sync with FreeBSD

FreeBSD has taken our patch(1) completely (29 JAN 2013), forked it, and
has improved on it. It's a relatively simple sync. Selected change log:

More user friendly:
-

patch(1): Sync with FreeBSD

FreeBSD has taken our patch(1) completely (29 JAN 2013), forked it, and
has improved on it. It's a relatively simple sync. Selected change log:

More user friendly:
- Ask only once for "apply anyway"
- Tell user which patch failed rather than only # of hunk failures

Handle lines with null character:
- read buffer for pgets properly populated
- callers of pgets still misprocess buffer contents, but at least
pgets is more accurate

Make "patch < fubar" and "patch -i fubar" equivalent:
- previous behavior was source of "unexpected end of file in patch"
errors when null characters came from stdin

Fixed error handling where final fclose got skipped
Fixed target selection logic to match was was documented on man page
Synced with OpenBSD base

show more ...


Revision tags: v3.6.0, v3.7.1, v3.6.0rc, v3.4.3, v3.4.2, v3.4.1, v3.4.0, v3.4.0rc, v3.5.0, v3.2.2, v3.2.1, v3.2.0, v3.3.0, v3.0.3, v3.0.2, v3.0.1, v3.1.0, v3.0.0
# 86d7f5d3 26-Nov-2011 John Marino <draco@marino.st>

Initial import of binutils 2.22 on the new vendor branch

Future versions of binutils will also reside on this branch rather
than continuing to create new binutils branches for each new version.


Revision tags: v2.12.0, v2.13.0, v2.10.1, v2.11.0, v2.10.0, v2.9.1, v2.8.2, v2.8.1, v2.8.0, v2.9.0, v2.6.3, v2.7.3, v2.6.2, v2.7.2, v2.7.1, v2.6.1, v2.7.0, v2.6.0, v2.5.1, v2.4.1, v2.5.0, v2.4.0, v2.3.2, v2.3.1, v2.2.1, v2.2.0, v2.3.0, v2.1.1, v2.0.1
# 32fe83a8 10-Aug-2008 Joerg Sonnenberger <joerg@dragonflybsd.org>

Check, complain about and accumulate errors when writing reject files
or final output. This can happen for example if the filesystem is full
and silent truncation of output files is the worst way to

Check, complain about and accumulate errors when writing reject files
or final output. This can happen for example if the filesystem is full
and silent truncation of output files is the worst way to handle this.

show more ...


# 9d62a0f9 29-Sep-2007 Sascha Wildner <swildner@dragonflybsd.org>

Sync with OpenBSD:

* Instead of calling out mkdir -p, reuse code from mkdir(1).

* Use calloc() to avoid malloc(n * m) overflows.

* Add detailed SYNOPSIS to the manual page, sort options and add

Sync with OpenBSD:

* Instead of calling out mkdir -p, reuse code from mkdir(1).

* Use calloc() to avoid malloc(n * m) overflows.

* Add detailed SYNOPSIS to the manual page, sort options and add
missing arguments.

* Various cleanups.

show more ...


# 312c7cfe 18-Apr-2006 Joerg Sonnenberger <joerg@dragonflybsd.org>

Introduce a new variable to hold the size of buf.


# 41871674 10-Apr-2006 Joerg Sonnenberger <joerg@dragonflybsd.org>

Improve portability of patch(1):
- basename(3) and dirname(3) can either return a pointer to
static storage (like on all BSDs) or modify the argument
(like on Linux). strdup the argument to suppo

Improve portability of patch(1):
- basename(3) and dirname(3) can either return a pointer to
static storage (like on all BSDs) or modify the argument
(like on Linux). strdup the argument to support both.
- fix argument range of ctype macros.

show more ...


# f9ea5d32 28-Sep-2004 Joerg Sonnenberger <joerg@dragonflybsd.org>

Make the BSD patch WARNS=6 clean
- constify string operations if possible
- rename some variables to avoid namespace clashes
- don't cast the signal functions to sig_t), it's unnecessary

Submitted-b

Make the BSD patch WARNS=6 clean
- constify string operations if possible
- rename some variables to avoid namespace clashes
- don't cast the signal functions to sig_t), it's unnecessary

Submitted-by: Sascha Wildner <saw@online.de>

Instead of i_ptr[++iline][0] = '\0', I've used a special empty char array
instead. I'm not sure if i_ptr[++iline] points to a valid memory location
under all circumstances and this is a safer bet.

show more ...


# 48d201a5 24-Sep-2004 Joerg Sonnenberger <joerg@dragonflybsd.org>

Add GPL-free patch. This is the extended version of Larry Wall's original
patch.

Obtained-from: OpenBSD
Submitted-by: Sascha Wildner <saw@online.de>