<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/gnu/usr.bin/patch/pch.c, branch releng/12.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2013-09-03T20:03:10Z</updated>
<entry>
<title>Remove our hacked GNU patch.</title>
<updated>2013-09-03T20:03:10Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2013-09-03T20:03:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d3e23b57a1df39e659c46092668d7716fe8d17ad'/>
<id>urn:sha1:d3e23b57a1df39e659c46092668d7716fe8d17ad</id>
<content type='text'>
The old (2.1) GNU patch has outlived its days.  The major
local changes have been moved into the less restrictedly
licensed patch(1) we adopted in usr.bin/ .

A much newer version of GNU patch is available in the
ports tree (devel/patch).

Disconnect from the build and remove.
</content>
</entry>
<entry>
<title>Properly handle input lines containing NUL characters such that pgets()</title>
<updated>2013-07-02T17:17:42Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2013-07-02T17:17:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a559a5a94fc7d293c70329b023cd17a19a66978f'/>
<id>urn:sha1:a559a5a94fc7d293c70329b023cd17a19a66978f</id>
<content type='text'>
accurately fills the read buffer.

Callers of pgets() still mis-process the buffer contents if the read line
contains NUL characters, but this at least makes pgets() accurate.
</content>
</entry>
<entry>
<title>Make it so that 'patch &lt; FUBAR' and 'patch -i FUBAR' operate the same.</title>
<updated>2013-07-02T17:09:57Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2013-07-02T17:09:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=07b3f0f7db7ec4cc407a26f20b9f545c92a571e3'/>
<id>urn:sha1:07b3f0f7db7ec4cc407a26f20b9f545c92a571e3</id>
<content type='text'>
The former makes a copy of stdin, but was not accurately putting the
content of stdin into a temp file.  This lead to the undercounting
the number of lines in hunks containing NUL characters when reading
from stdin.  Thus resulting in "unexpected end of file in patch" errors.
</content>
</entry>
<entry>
<title>The buffer returned by fgenln is not a "C" string and might not be NUL</title>
<updated>2009-09-16T19:53:29Z</updated>
<author>
<name>Stephane E. Potvin</name>
<email>sepotvin@FreeBSD.org</email>
</author>
<published>2009-09-16T19:53:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=68961d1200a9cb6bf3619f292a56b2ea35a048ae'/>
<id>urn:sha1:68961d1200a9cb6bf3619f292a56b2ea35a048ae</id>
<content type='text'>
terminated. Make sure that it is before using it.

Reviewed by:	marck@
MFC after:	3 days
</content>
</entry>
<entry>
<title>Add support for diffs generated by Perforce.</title>
<updated>2009-08-23T12:23:24Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2009-08-23T12:23:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=69eb6d71d0c17236b77a4a3e2eff4078edf2b25e'/>
<id>urn:sha1:69eb6d71d0c17236b77a4a3e2eff4078edf2b25e</id>
<content type='text'>
It basically picks the filenames from the "====" line and strips off the
# revision number.
</content>
</entry>
<entry>
<title>Change the internal buffer used to store input lines from a static buffer</title>
<updated>2009-05-08T02:18:46Z</updated>
<author>
<name>Stephane E. Potvin</name>
<email>sepotvin@FreeBSD.org</email>
</author>
<published>2009-05-08T02:18:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9ab20e104c725eb316253051ac826d1b5a8d8423'/>
<id>urn:sha1:9ab20e104c725eb316253051ac826d1b5a8d8423</id>
<content type='text'>
to a dynamically allocated one in order to support input lines of
arbitrary length.

Approved by:	kan (mentor)
MFC after:	1 month
</content>
</entry>
<entry>
<title>Change parts of the source code to make it closer to style(9), mainly</title>
<updated>2002-05-21T00:44:18Z</updated>
<author>
<name>Garance A Drosehn</name>
<email>gad@FreeBSD.org</email>
</author>
<published>2002-05-21T00:44:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d77254e807f16dbbec97ae5a0b892ac707c0e58e'/>
<id>urn:sha1:d77254e807f16dbbec97ae5a0b892ac707c0e58e</id>
<content type='text'>
changing indentation and some comments.  Main goal is not perfect style,
but just to reduce differences with NetBSD.  The object code is exactly
the same after this change as before it (except for assert() statements
which have moved).

Reviewed by:	/sbin/md5 on i386
Obtained from:	NetBSD
</content>
</entry>
<entry>
<title>Add many prototypes and ANSI-ize 'patch.  Not a complete job of it, but it gets</title>
<updated>2002-04-28T01:33:45Z</updated>
<author>
<name>Garance A Drosehn</name>
<email>gad@FreeBSD.org</email>
</author>
<published>2002-04-28T01:33:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=38a1326cad12aa8f57c6acd7498f25503df976c9'/>
<id>urn:sha1:38a1326cad12aa8f57c6acd7498f25503df976c9</id>
<content type='text'>
our patch to look a little more like NetBSD's, and has the nice characteristic
that the object code is exactly the same after the change as before it (even in
patch.c and pch.c, which have pesky 'assert' statements in them).

Reviewed by:	/sbin/md5 on i386, alpha, sparc64
MFC after:	3 days
</content>
</entry>
<entry>
<title>Modify our 'patch' utility to recognize the</title>
<updated>2002-04-26T19:01:19Z</updated>
<author>
<name>Garance A Drosehn</name>
<email>gad@FreeBSD.org</email>
</author>
<published>2002-04-26T19:01:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5343608723e3db4c25d77d761d99f3db72036166'/>
<id>urn:sha1:5343608723e3db4c25d77d761d99f3db72036166</id>
<content type='text'>
   \ No newline at end of file
line that some versions of diff print out if the last line of the two files
are different, and one of the two files does not have a newline character
on that last line.

This change is still somewhat under discussion in -arch and -standards, but I
want to commit it to -current today so I'd have the chance to MFC it to -stable
before the code freeze for 4.6-release (which would be May 1st).

Note: the related change to 'diff' (so it might *generate* that line) is NOT
expected to be included in 4.6-release.  We can debate that change later.

Obtained from:	NetBSD (1.13 of basesrc/usr.bin/patch/pch.c, by kristerw)
MFC after:	4 days
</content>
</entry>
<entry>
<title>Fix patch such that skipping files does not count as a failure.</title>
<updated>2000-08-02T06:54:21Z</updated>
<author>
<name>Kelly Yancey</name>
<email>kbyanc@FreeBSD.org</email>
</author>
<published>2000-08-02T06:54:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d1b04ce6b7bfd4d77ca5ba0d271a9d904107de65'/>
<id>urn:sha1:d1b04ce6b7bfd4d77ca5ba0d271a9d904107de65</id>
<content type='text'>
Previously, using -S/--skip, -f/--force, or -t/--batch to skip a patch in
a patchset still registers a failure which causes patch to return a
non-zero exit code. This is particularly undesirable with regards to
ports as there is no way to ignore the non-zero code. (Luckily, we don't
currently have any ports that make use of any of these options.)

The PR (yes, my own) is slightly incorrect: It states that -f does indeed
properly skip patches. It does, but it still sets the failure flag causing
patch to return non-zero.

PR:		19638
Submitted by:	kbyanc@posi.net
</content>
</entry>
</feed>
