History log of /dragonfly/usr.bin/patch/util.c (Results 1 – 13 of 13)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v6.2.1, v6.2.0, 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, v4.0.0, v4.0.0rc3, v4.0.0rc2, v4.0.0rc, v4.1.0, v3.8.2, v3.8.1, v3.6.3, 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.7.0, v3.4.3, v3.4.2, v3.4.0, v3.4.1, 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
# 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 ...


# e888e232 03-Feb-2006 Simon Schubert <corecode@dragonflybsd.org>

Make patch break hardlinks even if not making backups.


# be7fdc21 19-Jan-2006 Simon Schubert <corecode@dragonflybsd.org>

make zero prefix or suffix tell patch not to produce backups at all


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


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


# c9e3d8f9 30-Apr-2010 Venkatesh Srinivas <me@endeavour.zapto.org>

patch: Free temporary buffer after stripping.

Imported from OpenBSD 2010/01.