<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/patch/patch.c, branch release/10.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F10.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F10.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2015-01-08T03:44:54Z</updated>
<entry>
<title>MFC	r276218:</title>
<updated>2015-01-08T03:44:54Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2015-01-08T03:44:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c56f3a33d69d3e407fdaa7f13cc732457248666d'/>
<id>urn:sha1:c56f3a33d69d3e407fdaa7f13cc732457248666d</id>
<content type='text'>
patch: Bring in xstrdup and use it when appropriate.

The function savestr allows NULL return values during Plan A patching so in
case of out of memory conditions, Plan B can step in.  In many cases, NULL
value is not properly handled, so use xstrdup here (it's outside Plan A/B
patching, which means that even Plan B relies on successful operations).

Clean up some whitespaces while here

Obtained from:	OpenBSD
</content>
</entry>
<entry>
<title>MFC	r276472:</title>
<updated>2015-01-05T16:09:51Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2015-01-05T16:09:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3d0df56b3f668d8b03a3ba8a25a4724e3a59ab03'/>
<id>urn:sha1:3d0df56b3f668d8b03a3ba8a25a4724e3a59ab03</id>
<content type='text'>
Minor fixes to exit status.

Exit with EXIT_FAILURE for invalid arguments.
Fixes NetBSD-PR 43517.

Print version string to stdout instead of stderr;
it is user-requested and not an error.

Obtained from:	NetBSD
</content>
</entry>
<entry>
<title>MFC	r275531, r275581, r275582;</title>
<updated>2014-12-16T21:05:28Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-12-16T21:05:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cf373ea486258f960fbf12252cda5b30a81776cb'/>
<id>urn:sha1:cf373ea486258f960fbf12252cda5b30a81776cb</id>
<content type='text'>
patch(1): Small changes to sync with OpenBSD

Update OpenBSD CVS revision tag for our r255232.
Prefer setvbuf() to setlinebuf().
Small space changes, mostly to keep in sync with OpenBSD

Obtained from:	OpenBSD
</content>
</entry>
<entry>
<title>MFC	r267512:</title>
<updated>2014-06-22T20:29:51Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-06-22T20:29:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1d45fb55976ea2ec8f802e7855137cfb8ac3744d'/>
<id>urn:sha1:1d45fb55976ea2ec8f802e7855137cfb8ac3744d</id>
<content type='text'>
patch: add dry-run alias for compatibility with other implementations.

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

Add a new alias to make our implementation more compatible.
</content>
</entry>
<entry>
<title>MFC	r267490:</title>
<updated>2014-06-22T20:24:17Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-06-22T20:24:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=afa0538d5c9eaaafebaacb8af5457ed7741944ca'/>
<id>urn:sha1:afa0538d5c9eaaafebaacb8af5457ed7741944ca</id>
<content type='text'>
patch: unsign the line length to avoid overflows.

Patch(1) uses a short int for the line length, which is usually
sufficient for regular diffs, but makes no effort to signal
when there is an overflow.

Change the line length to an unsigned short int to better use
the fact that a length is never negative.  The change is loosely
inspired on a related change in DragonFly, but we avoid spending
more memory than necessary.

While here adjust the messages to be clearer on what is happening.
</content>
</entry>
<entry>
<title>Improve bsdpatch usability:</title>
<updated>2013-09-26T18:00:45Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2013-09-26T18:00:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e11cd3bc59ee77f33a2d253d462dac6b3891e6e4'/>
<id>urn:sha1:e11cd3bc59ee77f33a2d253d462dac6b3891e6e4</id>
<content type='text'>
 - Ask only once for "Apply anyway". [1]
 - Tell user what file have failed patch rather than just how
   many hunks failed.

Reported by:	jmg via pfg [1]
Tested by:	pfg [1]
Approved by:	re (gjb)
</content>
</entry>
<entry>
<title>patch: style fix</title>
<updated>2013-07-24T15:46:49Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2013-07-24T15:46:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b9740ba1a829a1851d576f4bae2e4237022185bc'/>
<id>urn:sha1:b9740ba1a829a1851d576f4bae2e4237022185bc</id>
<content type='text'>
Submitted by:	gogolok
</content>
</entry>
<entry>
<title>Revert r250972 to fix build.</title>
<updated>2013-05-25T07:17:16Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2013-05-25T07:17:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ffca5883e80e522b22c15948e6f7d8eade7c009e'/>
<id>urn:sha1:ffca5883e80e522b22c15948e6f7d8eade7c009e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>The error handling for writes to the target file could lead to the final</title>
<updated>2013-05-24T18:54:52Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2013-05-24T18:54:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2360cb0eeab2eae6afc8db630b7b167d19b33d6e'/>
<id>urn:sha1:2360cb0eeab2eae6afc8db630b7b167d19b33d6e</id>
<content type='text'>
fclose() being skipped. Fix this by using boolean "&amp;" and "|" instead of
short-cut operators "&amp;&amp;" and "||".
While here, increment the last part of the version string. The reason is
the fixed output file selection logic in pch.c, which was committed as
r250943, yesterday.

Reviewed by:	pfg
</content>
</entry>
<entry>
<title> - Refresh code with latest OpenBSD revisions.</title>
<updated>2013-01-29T20:05:16Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2013-01-29T20:05:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e56ef7d3586d1dea57990c7d94e260b54423ffc3'/>
<id>urn:sha1:e56ef7d3586d1dea57990c7d94e260b54423ffc3</id>
<content type='text'>
 - Remove $DragonFly$ tags as they are using git nowadays and VCS tags will
   not help merging.
 - Other changes to Copyright headers to make them consistent with other
   source code, we intend to fork from this point.

Reviewed by:	pfg
</content>
</entry>
</feed>
