<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin, branch releng/12.3</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.3</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.3'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2021-10-26T07:47:17Z</updated>
<entry>
<title>cmp: initialize limit to avoid stack garbage limits</title>
<updated>2021-10-26T07:47:17Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-10-21T16:30:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3a504205e4301be9378d17282a571f311272c6fb'/>
<id>urn:sha1:3a504205e4301be9378d17282a571f311272c6fb</id>
<content type='text'>
Approved by:	re (gjb)
Pointy hat:	kevans
Fixes:	4e380e847460 ("cmp: add -n, --bytes to limit number of bytes [...]")
Sponsored by:	Klara, Inc.

(cherry picked from commit f1f7f31366e5830f4f5b96c6394a0b91475744f4)
(cherry picked from commit aba2dc46dfa51cf9e1b1987ca4e91f703ae7e368)
</content>
</entry>
<entry>
<title>unzip: Fix segmentation fault if a zip file contains buggy filename.</title>
<updated>2021-10-18T11:17:27Z</updated>
<author>
<name>Yoshihiro Takahashi</name>
<email>nyan@FreeBSD.org</email>
</author>
<published>2021-10-10T11:49:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=94c3735b74f796a8b271091a8ebc276021345d79'/>
<id>urn:sha1:94c3735b74f796a8b271091a8ebc276021345d79</id>
<content type='text'>
PR:             259011
Reported by:    Robert Morris
Submitted by:   ak

(cherry picked from commit 2c614481fd5248c1685e713f67d40cf2d5fba494)
</content>
</entry>
<entry>
<title>contrib/bc, usr.bin/gh-bc: merge update to version 5.1.1</title>
<updated>2021-10-12T14:37:47Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2021-05-12T05:49:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e32b8140f4e7de93eb7d571e7fcb2bf9db6c97a3'/>
<id>urn:sha1:e32b8140f4e7de93eb7d571e7fcb2bf9db6c97a3</id>
<content type='text'>
This version of bc and dc is used by default on FreeBSD-13 and newer,
but remains optional on FreeBSD-12.x. It is enabled by building and
installing the world with WITH_GH_BC=yes defined in /etc/src.conf.

contrib/bc: update to version 4.0.2

Merge commit '2858419a0ee2b8f5827de72c00618bcd69ebc5fc'

This update fixes the initialization of "scale" to 20 if started with
-l and the initial statement leads to an error (e.g. contains a syntax
error). Scale was initialized to 0 in that case.

Another change is the support of job control in interactive mode with
line editing enabled. The control characters have been interpreted as
editing commands only, prior to this version.

(cherry picked from commit 8c39e25220bb88cd027d0c3b0fe86e52f6abd150)
(cherry picked from commit 3d5f931a771ce8937c0572a4fc11bf7a09323125)

usr.bin/gh-bc, contrib/bc: update to version 5.0.0

Merge commit 2f57ecae4b98e76e5d675563785a7e6c59c868c4

This is a new major release with a number of changes and extensions:

- Limited the number of temporary numbers and made the space for them
  static so that allocating more space for them cannot fail.
- Allowed integers with non-zero scale to be used with power, places,
  and shift operators.
- Added greatest common divisor and least common multiple to lib2.bc.
- Made bc and dc UTF-8 capable.
- Added the ability for users to have bc and dc quit on SIGINT.
- Added the ability for users to disable prompt and TTY mode by
  environment variables.
- Added the ability for users to redefine keywords.
- Added dc's modular exponentiation and divmod to bc.
- Added the ability to assign strings to variables and array elements
  and pass them to functions in bc.
- Added dc's asciify command and stream printing to bc.
- Added bitwise and, or, xor, left shift, right shift, reverse,
  left rotate, right rotate, and mod functions to lib2.bc.
- Added the functions s2u(x) and s2un(x,n), to lib2.bc.

MFC after:	1 week

(cherry picked from commit 44d4804d1945435745518cd09eb8ae6ab22ecef4)

vendor/bc: update to upstream version 5.0.2

(cherry picked from commit a60ef1802a36f2f2a5611564191440ea1c1e2f17)
(cherry picked from commit 662087dfd0668dee82ed20d00ced662aa3595059)

contrib/bc: remove files ommitted from the release

A number of files have been removed from the release distribution of
this bc implementation. They were mostly relevant for pre release
testing and benchmarking to identify regressions. The Markdown
sources of the man pages are only relevant for combinations of build
options not used in FreeBSD and need non-default conversion tools
(available as ports in FreeBSD).

All the omitted files can be found in the upstream git repository,
and they are fetched when building this software as a port. But they
have never been used in the FreeBSD base system.

(cherry picked from commit ea31d1a5c490193348e0b71fdda6d08a2c80a2eb)

Remove files that were checked in with wrong .gitattributes

These files will be added back in updated form, but are only relevant
for the Windows platform, anyway.

(cherry picked from commit d6c323eda215d05091f56d02a8274eb50c244a6f)

contrib/bc: merge version 5.1.0 from vendor branch

This version adds options and functions that allow to print numbers
in the open interval (-1 .. 1) with or without a leading 0 digit.

Additionally, an option has been added to prevent line wrap and
allows to print arbitrarily long results on a single line.

Merge commit '5d58a51571721190681c50d4bd3a1f45e6282d72'

(cherry picked from commit d43fa8ef534ac87a16843d45264f56cf11e0fcbc)

contrib/bc: update to version 5.1.1

Merge commit '6f49f5cdde1c62c4e5a743e895f3afe592b5c0e5'

(cherry picked from commit a30efc5ca7272e446abb71f0d72c76539f267bb6)

contrib/bc: temporarily disconnect the tests for 5.0.2

The tests that come with version 5.0.2 have been extended to cover the
line editing functions. It has been found that these tests generate
false negative results in FreeBSD, most likely due to an issue in the
pexpect functionality used.

These history tests are skipped on systems that do not have python and
py-pexpect installed (and thus are unlikely to cause CI test failures),
but in order to not cause irritating failures on systems were these
packages are in fact installed, I temporarily disconnect them.

I had planned to skip this version due to the issue with the history
tests, but some committer has asked me to go ahead since the currently
used version 5.0.0 contains a macro name that collides with a project
he is working on.

No MFC of this version is planned. A version 5.0.3 is expected to be
released soon, and that version will allow to reconnect the tests and
will be MFCed.

(cherry picked from commit f774652b0e837be415abd20935eae3466ea34a20)

Add back Windows only VCXProj files

(cherry picked from commit ded0d3d486eba766f613070de0ed12029a9a3816)

contrib/bc: re-enable tests after the import of version 5.1.0

The tests have been fixed to not write any data outside of the
temporary work directory provided by the test framework.

MFC after:	3 days

(cherry picked from commit b8d895faf47afb8f3b31055e2ec2db8d0df5db23)

Revert erroneous commit ded0d3d486eba

These files came from a prior commit to contrib/bc and seem to have
been placed in the top of the source tree by a failed git rebase.

Reported by:	markj

(cherry picked from commit f902ca97bdbceccf62b4b02b0321af91ea398925)
(cherry picked from commit e84a97439b4bcc11e04837b2f130dfff4c755c5f)
</content>
</entry>
<entry>
<title>ar: provide error exit status upon failure</title>
<updated>2021-10-09T00:29:30Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2021-08-03T18:30:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fb15a9f90b29da471892ad1e0a1bb7173a7da858'/>
<id>urn:sha1:fb15a9f90b29da471892ad1e0a1bb7173a7da858</id>
<content type='text'>
Previously ar and ranlib returned with exit status 0 (success) in the
case of a missing file or other error.  Update to use error handling
similar to that added by ELF Tool Chain after that project forked
FreeBSD's ar.

PR:		PR257599 [exp-run]
Reported by:	Shawn Webb, gehmehgeh (on HardenedBSD IRC)
Reviewed by:	markj
Obtained from:	elftoolchain
MFC after:	2 months
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D31402

(cherry picked from commit 38911b3c2c7dbb9a097b44856472ebbbedde71fc)
</content>
</entry>
<entry>
<title>cmp: add -b, --print-bytes</title>
<updated>2021-10-03T05:19: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=e6eed7d7bc806c26e52eb0fe6c1c7f7f23eb3ea6'/>
<id>urn:sha1:e6eed7d7bc806c26e52eb0fe6c1c7f7f23eb3ea6</id>
<content type='text'>
This is compatible with GNU cmp.

Reviewed by:	bapt, markj (earlier version)
Sponsored by:	Klara, Inc.

(cherry picked from commit f66b9b40f403f7c30fec3c4ceed93c6e8fafa8ac)
</content>
</entry>
<entry>
<title>cmp: add -i, --ignore-initial, an alternative to skip1/skip2 args</title>
<updated>2021-10-03T05:19:56Z</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=b0f46c4b84093b23e8d40ffbc1f7f63659a0123c'/>
<id>urn:sha1:b0f46c4b84093b23e8d40ffbc1f7f63659a0123c</id>
<content type='text'>
This is compatible with GNU cmp.

Reviewed by:	markj
Sponsored by:	Klara, Inc.

(cherry picked from commit 8d546b6832eea031f95f30eaec3232ec1256a281)
</content>
</entry>
<entry>
<title>cmp: add -n, --bytes to limit number of bytes to compare</title>
<updated>2021-10-03T05:19:56Z</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=a67180b4b7706d504351c96359459876e9e0fb4b'/>
<id>urn:sha1:a67180b4b7706d504351c96359459876e9e0fb4b</id>
<content type='text'>
This is compatible with GNU cmp.

Reviewed by:	markj
Sponsored by:	Klara, Inc.

(cherry picked from commit 4e380e8474609875c4cf5277b3755ac29079a8b5)
</content>
</entry>
<entry>
<title>cmp: accept SI suffixes for skip1 and skip2</title>
<updated>2021-10-03T05:19:56Z</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=66691176665015a6c44ec78aa7f7ada8b4804a18'/>
<id>urn:sha1:66691176665015a6c44ec78aa7f7ada8b4804a18</id>
<content type='text'>
This is compatible with GNU cmp.

Reviewed by:	bapt (earlier version), markj, imp
Sponsored by:	Klara, Inc.

(cherry picked from commit f6787614fd4db2a9d5e649af0e819852ebd5a19d)
</content>
</entry>
<entry>
<title>man: reset OPTIND before parsing args</title>
<updated>2021-10-03T05:19:56Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-09-22T19:58:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=00d0f1811b719c66ee91b9bf4680cfc0515e65aa'/>
<id>urn:sha1:00d0f1811b719c66ee91b9bf4680cfc0515e65aa</id>
<content type='text'>
From jilles: POSIX requires that a script set `OPTIND=1` before using
different sets of parameters with `getopts`, or the results will be
unspecified.

The specific problem observed here is that we would execute `man -f` or
`man -k` without cleaning up state from man_parse_args()' `getopts`
loop.  FreeBSD's /bin/sh seems to reset OPTIND to 1 after we hit the
second getopts loop, rendering the following shift harmless; other
/bin/sh implementations will leave it at what we came into the loop at
(e.g., bash as /bin/sh), shifting off any keywords that we had.

Input from:	jilles
Reviewed by:	allanjude, bapt, imp
Sponsored by:	Klara, Inc.

(cherry picked from commit f555b39e6bb7cbfbe1905e90f64c4dfc4456fabb)
</content>
</entry>
<entry>
<title>cmp(1): Add EXAMPLES section</title>
<updated>2021-10-03T05:19:56Z</updated>
<author>
<name>Fernando Apesteguía</name>
<email>fernape@FreeBSD.org</email>
</author>
<published>2020-06-20T11:20:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ca052baa603aa5743c616d89c2fb2dfdb6fcd4ea'/>
<id>urn:sha1:ca052baa603aa5743c616d89c2fb2dfdb6fcd4ea</id>
<content type='text'>
Add a small number of examples depicting the use of -l, -z and byte offsets

(cherry picked from commit 1831993577db18d193e94269e337f6286536814e)
</content>
</entry>
</feed>
