<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/patch, branch release/10.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F10.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F10.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2014-06-22T20:29:51Z</updated>
<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>MFC	r267426, r267464:</title>
<updated>2014-06-21T01:48:45Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-06-21T01:48:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5130385295210be670a7b41ca0f9b09c4d0b2870'/>
<id>urn:sha1:5130385295210be670a7b41ca0f9b09c4d0b2870</id>
<content type='text'>
Avoid zeroing during allocation.

This change reverts a change from OpenBSD which made use of
calloc, and therefore wasted time initializing arrays that
will later be realloc'ed.

Consistently use FreeBSD's reallocf():
- Drop some bogus casts to size_t.
- The new_p_foo variables are not needed anymore.

Also merge the changes from OpenBSD's manpage
patch.1 Rev 1.27:
"patch was moved from user portability (UP) to base in issue 7
and is no longer optional"
</content>
</entry>
<entry>
<title>MFC	r264581, r264744:</title>
<updated>2014-04-30T20:39:08Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-04-30T20:39:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=914fc70ec76e09060d62713a7d3c29e83d2d1c41'/>
<id>urn:sha1:914fc70ec76e09060d62713a7d3c29e83d2d1c41</id>
<content type='text'>
Various style(9) fixes and typos in printf, grep, sort and patch.

#define should be followed by a tab.
</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>Fix file selection logic for the RCS/SCCS case, as was done for the simple</title>
<updated>2013-09-05T05:51:15Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2013-09-05T05:51:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=79d8aaa992b25eaf08162efd7eef37bdf9581227'/>
<id>urn:sha1:79d8aaa992b25eaf08162efd7eef37bdf9581227</id>
<content type='text'>
file case before. Bump version because of the changed behavior, which now
matches the documentation.

Reviewed by:	pfg
</content>
</entry>
<entry>
<title>Drop build option switch for the older GNU patch.</title>
<updated>2013-08-29T00:38:24Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2013-08-29T00:38:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4b97b38825df466178637edccba8c684233feca8'/>
<id>urn:sha1:4b97b38825df466178637edccba8c684233feca8</id>
<content type='text'>
As promised, drop the option to make the older GNU patch
the default.

GNU patch is still being built but something drastic may
happen to it to it before Release.
</content>
</entry>
<entry>
<title>Make the BSD-licensed patch the default.</title>
<updated>2013-07-26T21:25:18Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2013-07-26T21:25:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=21244d522787c25ce4187cbd9b523e266b6ca8c6'/>
<id>urn:sha1:21244d522787c25ce4187cbd9b523e266b6ca8c6</id>
<content type='text'>
The BSD-licensed patch(1) command has matured and it's behaviour
can be considered equivalent to the older version of GNU patch
in the tree.

The switch has been extensively tested [1] and only two ports
presented regressions, which have since been fixed.

For convenience a new WITH_GNU_PATCH option is available,
but it will likely be removed in the near future.

PR:		176313
Approved by:	portmgr
</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>Merge r252513 from src/gnu/usr.bin/patch into src/usr.bin/patch:</title>
<updated>2013-07-03T22:46:30Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2013-07-03T22:46:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6d85e39be1690c85a4286b75e0c9e141d242fb8d'/>
<id>urn:sha1:6d85e39be1690c85a4286b75e0c9e141d242fb8d</id>
<content type='text'>
Properly handle input lines containing NUL characters such that pgets()
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>
</feed>
