<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/cmp/tests, branch releng/14.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-08-16T17:55:03Z</updated>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:55:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf'/>
<id>urn:sha1:d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
</entry>
<entry>
<title>spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD</title>
<updated>2023-05-12T16:44:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-05-10T15:40:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4d846d260e2b9a3d4d0a701462568268cbfe7a5b'/>
<id>urn:sha1:4d846d260e2b9a3d4d0a701462568268cbfe7a5b</id>
<content type='text'>
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:		pfg
MFC After:		3 days
Sponsored by:		Netflix
</content>
</entry>
<entry>
<title>cmp: add -b, --print-bytes</title>
<updated>2021-09-29T18:04:57Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-09-23T05:46:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f66b9b40f403f7c30fec3c4ceed93c6e8fafa8ac'/>
<id>urn:sha1:f66b9b40f403f7c30fec3c4ceed93c6e8fafa8ac</id>
<content type='text'>
This is compatible with GNU cmp.

Reviewed by:	bapt, markj (earlier version)
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D32074
</content>
</entry>
<entry>
<title>cmp: add -i, --ignore-initial, an alternative to skip1/skip2 args</title>
<updated>2021-09-29T18:03:34Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-09-23T05:43:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8d546b6832eea031f95f30eaec3232ec1256a281'/>
<id>urn:sha1:8d546b6832eea031f95f30eaec3232ec1256a281</id>
<content type='text'>
This is compatible with GNU cmp.

Reviewed by:	markj
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D32073
</content>
</entry>
<entry>
<title>cmp: add -n, --bytes to limit number of bytes to compare</title>
<updated>2021-09-29T18:03:34Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-09-23T05:26:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4e380e8474609875c4cf5277b3755ac29079a8b5'/>
<id>urn:sha1:4e380e8474609875c4cf5277b3755ac29079a8b5</id>
<content type='text'>
This is compatible with GNU cmp.

Reviewed by:	markj
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D32072
</content>
</entry>
<entry>
<title>cmp: accept SI suffixes for skip1 and skip2</title>
<updated>2021-09-29T18:03:34Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-09-23T05:17:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f6787614fd4db2a9d5e649af0e819852ebd5a19d'/>
<id>urn:sha1:f6787614fd4db2a9d5e649af0e819852ebd5a19d</id>
<content type='text'>
This is compatible with GNU cmp.

Reviewed by:	bapt (earlier version), markj, imp
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D32071
</content>
</entry>
<entry>
<title>cmp: fix -s (silent) when used with skip offsets</title>
<updated>2021-01-11T00:02:56Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2021-01-11T00:02:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=80445b7a3f738e0b0a33ee7a11905a275346a6de'/>
<id>urn:sha1:80445b7a3f738e0b0a33ee7a11905a275346a6de</id>
<content type='text'>
-s causes cmp to print nothing for differing files, for use when only
the exit status is of interest.

-z compares the file size first, for regular files, and fails the
comparison early if they do not match.

Prior to this change -s implied -z as an optimization, but this is not
valid when file offsets are specified.  Now, enable the -z optimization
for -s only if both skip arguments are not provided / 0.

Note that using -z with differing skip values will currently always
fail.  We may want to compare size1 - skip1 with size2 - skip2 instaead,
and in any case the man page should be clarified.

PR:		252542
Fixes:		3e6902efc802ab57fc4e9bf798f2d271b152e7f9
Reported by:	William Ahern
Reviewed by:	markj
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D28071
</content>
</entry>
<entry>
<title>Drop "All rights reserved" from the files I own</title>
<updated>2019-03-11T22:23:56Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2019-03-11T22:23:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=809a8352dd5bb83dca991ff6c82e509208afad26'/>
<id>urn:sha1:809a8352dd5bb83dca991ff6c82e509208afad26</id>
<content type='text'>
Also, add SPDX tags where needed.

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Fix handling of rights on stdio streams, take two.</title>
<updated>2019-02-25T19:47:27Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2019-02-25T19:47:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2528b7e2cb5c0d6fe0ad020dd80a1573d02a6240'/>
<id>urn:sha1:2528b7e2cb5c0d6fe0ad020dd80a1573d02a6240</id>
<content type='text'>
Split the rights-limiting code into two cases: if one of the input
files isn't a regular file, use caph_limit_stream(3) instead of
open-coding the same logic; if both input files are regular files,
and the initial attempts to map them succeed, we limit the rights on
those files to CAP_MMAP_R.

Add a regression test for PR 234885.

PR:		234885
Reviewed by:	delphij
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D19216
</content>
</entry>
<entry>
<title>Fix cmp(1) tests for "special" mode.</title>
<updated>2019-01-21T03:57:49Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2019-01-21T03:57:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=109b5c109cf9f478fdc37a4e66fb6150ef1649df'/>
<id>urn:sha1:109b5c109cf9f478fdc37a4e66fb6150ef1649df</id>
<content type='text'>
Test failures don't seem to propagate up if atf_check is run in
a pipeline.  Thus, the tests continued to pass despite the bug reverted
in r343245.

MFC after:	1 week
</content>
</entry>
</feed>
