<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/patch/common.h, branch releng/13.5</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.5</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.5'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-08-23T17:43:22Z</updated>
<entry>
<title>Remove $FreeBSD$: one-line .h pattern</title>
<updated>2023-08-23T17:43:22Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=34041aac835a0bce462bccb7e0239c0ba092f872'/>
<id>urn:sha1:34041aac835a0bce462bccb7e0239c0ba092f872</id>
<content type='text'>
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/

Similar commit in main:
(cherry picked from commit 42b388439bd3)
</content>
</entry>
<entry>
<title>patch(1): Exit successfully if we're fed a 0-length patch</title>
<updated>2019-03-01T01:20:21Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2019-03-01T01:20:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ef30b5a80910bd877f582248004200065eeb3ef5'/>
<id>urn:sha1:ef30b5a80910bd877f582248004200065eeb3ef5</id>
<content type='text'>
This change is made in the name of GNU patch compatibility. If GNU patch is
fed a zero-length patch, it will exit successfully with no output. This is
used in at least one port to date (comms/wsjtx), and we break on this usage.

It seems unlikely that anyone relies on patch(1) calling their completely
empty patch garbage and failing, and GNU compatibility is a plus if it helps
with porting, so make the switch.

Reported by:	db
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>patch(1): make some macros look boolean.</title>
<updated>2016-10-01T20:46:01Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-10-01T20:46:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=758a3cff59d79c504cf0bb2060f5844dc5787f0f'/>
<id>urn:sha1:758a3cff59d79c504cf0bb2060f5844dc5787f0f</id>
<content type='text'>
Similar to r306560, plus remove an unused macro.

Suggested by:	jmallett
</content>
</entry>
<entry>
<title>patch(1): make some macros look boolean.</title>
<updated>2016-10-01T20:31:00Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-10-01T20:31:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c7ef297a8e3c18d58a94e5c94aa00932fb768e28'/>
<id>urn:sha1:c7ef297a8e3c18d58a94e5c94aa00932fb768e28</id>
<content type='text'>
Minor cleanup inspired by a new patch(1) variant in schily tools.

For reference:
https://sourceforge.net/p/schillix-on/

MFC after:	1 week
</content>
</entry>
<entry>
<title>Remove automatic checkout feature.</title>
<updated>2015-08-15T00:42:33Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2015-08-15T00:42:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e678759c309d8840ca620c77e6a6668b704c3220'/>
<id>urn:sha1:e678759c309d8840ca620c77e6a6668b704c3220</id>
<content type='text'>
Obtained from:	DragonFly via OpenBSD
Relnotes:	yes
MFC:		never
</content>
</entry>
<entry>
<title>Fix shell injection vulnerability in patch(1) and drop SCCS</title>
<updated>2015-07-28T19:58:36Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2015-07-28T19:58:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1e3e581593b6484569a2e6570329db4e2306f6cf'/>
<id>urn:sha1:1e3e581593b6484569a2e6570329db4e2306f6cf</id>
<content type='text'>
support by replacing system() with execve().

Future revisions may remove the functionality completely.

Obtained from:	Bitrig
Security:	CVE-2015-1416
</content>
</entry>
<entry>
<title>patch(1): avoid line number overflows</title>
<updated>2014-12-08T15:10:48Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-12-08T15:10:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d3fc0cb884f8858c0ae5f94c51587e717e3f9065'/>
<id>urn:sha1:d3fc0cb884f8858c0ae5f94c51587e717e3f9065</id>
<content type='text'>
Introduce strtolinenum to properly check line numbers while parsing:
no signs, no spaces, just digits, 0 &lt;= x &lt;= LONG_MAX

Properly validate line ranges supplied in diff file to prevent overflows.
Also fixes an out of boundary memory access because the resulting values
are used as array indices.

PR:	195436
Obtained from:	OpenBSD (CVS pch.c rev 1.45, 1,46, common.h rev 1.28)
MFC after:	1 week
</content>
</entry>
<entry>
<title>Various style(9) fixes and typos in grep, sort and patch.</title>
<updated>2014-04-21T22:52:18Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-04-21T22:52:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b1a409863f4784ab8a7a9fa04b3e9b3c92e7fd72'/>
<id>urn:sha1:b1a409863f4784ab8a7a9fa04b3e9b3c92e7fd72</id>
<content type='text'>
MFC after:	3 days
</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>
<entry>
<title>- Add a BSD-licensed patch, ported by Pedro F. Giffuni (pfg) from</title>
<updated>2013-01-29T17:03:18Z</updated>
<author>
<name>Gabor Kovesdan</name>
<email>gabor@FreeBSD.org</email>
</author>
<published>2013-01-29T17:03:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2dd076b84bb1129d0a62b886a4e736a9344b3376'/>
<id>urn:sha1:2dd076b84bb1129d0a62b886a4e736a9344b3376</id>
<content type='text'>
  DragonflyBSD and install it as bsdpatch.  WITH_BSD_PATCH makes it
  default and installs GNU patch as gnupatch.

Submitted by:	pfg
Obtained from:	The DragonflyBSD Project
</content>
</entry>
</feed>
