History log of /dflybsd-src/usr.bin/patch/patch.c (Results 1 – 18 of 18)
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, 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
# c4be1ed5 16-Nov-2014 Robin Hahling <robin.hahling@gw-computing.net>

patch(1): Add dry-run alias for compatibility with other implementations

Other implementations of patch(1), including GNU patch, "svn patch" and
FreeBSD patch have a --dry-run option which does the

patch(1): Add dry-run alias for compatibility with other implementations

Other implementations of patch(1), including GNU patch, "svn patch" and
FreeBSD patch have a --dry-run option which does the same as our -C or
--check option.

Add --dry-run alias to increase compatibility.

Taken-from: FreeBSD

show more ...


Revision tags: 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
# 2267fd78 05-Mar-2013 Johannes Hofmann <johannes.hofmann@gmx.de>

Merge branch 'master' of git://git.dragonflybsd.org/dragonfly into wlan_serialize


# 4e473034 19-Feb-2013 Sascha Wildner <saw@online.de>

patch(1): Fix typo.


# cfc96340 19-Feb-2013 Sascha Wildner <saw@online.de>

patch(1): When -C is specified, do not claim to have saved rejects.

Submitted-by: Loganaden Velvindron
Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2359>


Revision tags: 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
# d649bbf2 10-Aug-2008 Joerg Sonnenberger <joerg@dragonflybsd.org>

Fix one inversed condition.


# 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 ...


# c30fd56d 10-Aug-2008 Joerg Sonnenberger <joerg@dragonflybsd.org>

Don't try to guess if the hunk was already applied if it doesn't have
context. This fails at least for the special case of adding the first
line of a file with no context and when fuzz is suppressed.

Don't try to guess if the hunk was already applied if it doesn't have
context. This fails at least for the special case of adding the first
line of a file with no context and when fuzz is suppressed.

Discussed with otto@openbsd.org, who didn't have a better idea.

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 ...


# 573bac56 10-Jan-2005 Sascha Wildner <swildner@dragonflybsd.org>

Update OpenBSD tags to reflect which revisions we are synced with.


# f7e25d55 26-Dec-2004 Sascha Wildner <swildner@dragonflybsd.org>

- Take back the commit from Oct. 1, 2004 since FreeBSD has changed their
Mk/bsd.port.mk in the meantime to use the --suffix option.

- Sync with OpenBSD, which means the reject file is written in u

- Take back the commit from Oct. 1, 2004 since FreeBSD has changed their
Mk/bsd.port.mk in the meantime to use the --suffix option.

- Sync with OpenBSD, which means the reject file is written in unified
format now if the original diff was unified.

- Perform some minor cleanup.

show more ...


# b6c0e487 02-Oct-2004 Matthew Dillon <dillon@dragonflybsd.org>

Make patch's -b option match the old patch's -b option, at least for now,
so ports don't break so badly.

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


# 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>