<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/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-08T16:27:33Z</updated>
<entry>
<title>freebsd-version(1): Add -j flag to support jails</title>
<updated>2021-10-08T16:27:33Z</updated>
<author>
<name>Faraz Vahedi</name>
<email>kfv@kfv.io</email>
</author>
<published>2021-10-01T18:46:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=98520e682d0b614a24cdeada096fa57816a18aa3'/>
<id>urn:sha1:98520e682d0b614a24cdeada096fa57816a18aa3</id>
<content type='text'>
Make freebsd-version(1) support jails by adding the -j flag which takes
a jail jid or name as an argument. As with other options, -j
flags stack and display in the order requested.

Reviewed by:	bcr (manpages), kevans
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D25705

(cherry picked from commit f54b18fc4d72c566912b9a41601ed87a852960e7)
</content>
</entry>
<entry>
<title>hostname: avoid strcpy() overlap in -d flag handling</title>
<updated>2021-10-03T05:19:56Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-09-25T05:00:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=47c84a0f6d6ece6f3d32a393a382e2a91544f421'/>
<id>urn:sha1:47c84a0f6d6ece6f3d32a393a382e2a91544f421</id>
<content type='text'>
We don't need the strcpy() anyways, just use a pointer to the hostname
buffer and move it forward for `hostname -d`.

Sponsored by:	Klara, Inc.

(cherry picked from commit 33c1e7271ac21a626829289780b88071ae46ec65)
</content>
</entry>
<entry>
<title>kenv: allow listing of static kernel environments</title>
<updated>2021-08-26T06:40:45Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-06-20T19:36:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a961049fc9b6e4b14ec071b6c457901b1badbea1'/>
<id>urn:sha1:a961049fc9b6e4b14ec071b6c457901b1badbea1</id>
<content type='text'>
The early environment is typically cleared, so these new options
need the PRESERVE_EARLY_KENV kernel config(8) option. These environments
are reported as missing by kenv(1) if the option is not present in the
running kernel.

(cherry picked from commit db0f26439357b78863e61985acd1e5acf75ce73d)
</content>
</entry>
<entry>
<title>kenv: s/dump/list/ to clarify meaning</title>
<updated>2021-08-26T06:39:49Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2021-06-21T03:11:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a68421a0e61d61c5e0b51b5f1f821fdd10c65ea2'/>
<id>urn:sha1:a68421a0e61d61c5e0b51b5f1f821fdd10c65ea2</id>
<content type='text'>
The contents of the kenv will be dumped to stdout, while dump could have
also meant 'discard'. Call it 'list' instead.

(cherry picked from commit 46438b5366f9405beb6f76474a5aae822352f012)
</content>
</entry>
<entry>
<title>sh: improve emacs mode</title>
<updated>2021-05-05T07:16:23Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2021-03-30T09:37:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2f2bbc485f2263ab8eb9d272a22d32c06f9e94e9'/>
<id>urn:sha1:2f2bbc485f2263ab8eb9d272a22d32c06f9e94e9</id>
<content type='text'>
In emacs mode, force ^R to backware search the history
This behaviour is the default in emacs mode for most of the other shells

Note: Note that this can still be overridden via $EDITRC, ~/.editrc or a
bind command after set -o emacs.

Approved by:		jilles
Reviewed by:		jilles, arichardson, pstef
Differential Revision:	https://reviews.freebsd.org/D29494

(cherry picked from commit 660045fb5360d328da199ae78c89d5cc15b6d1ca)
</content>
</entry>
<entry>
<title>sh/tests: Add a second kind of binary scripts without #!</title>
<updated>2021-01-30T15:10:26Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2021-01-03T20:27:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c48240fa6f8e168325a278f8b8cc075779615ddf'/>
<id>urn:sha1:c48240fa6f8e168325a278f8b8cc075779615ddf</id>
<content type='text'>
One of the reasons for git commit
e0f5c1387df23c8c4811f5b24a7ef6ecac51a71a was to make "actually portable
executables" work. Add a test that is more like those.

MFC after:	1 week

(cherry picked from commit 52981a1694be7a70013e5149c020706c9b6411f9)
</content>
</entry>
<entry>
<title>sh: Allow more scripts without #!</title>
<updated>2021-01-30T15:10:26Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2020-05-30T16:00:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3708b615c354df013037c065d5a714207c041ea8'/>
<id>urn:sha1:3708b615c354df013037c065d5a714207c041ea8</id>
<content type='text'>
Austin Group bugs #1226 and #1250 changed the requirements for shell scripts
without #! (POSIX does not specify #!; this is about the shell execution
when execve(2) returns an [ENOEXEC] error).

POSIX says we shall allow execution if the initial part intended to be
parsed by the shell consists of characters and does not contain the NUL
character.  This allows concatenating a shell script (ending with exec or
exit) and a binary payload.

In order to reject common binary files such as PNG images, check that there
is a lowercase letter or expansion before the last newline before the NUL
character, in addition to the check for the newline character suggested by
POSIX.

(cherry picked from commit e0f5c1387df23c8c4811f5b24a7ef6ecac51a71a)
</content>
</entry>
<entry>
<title>sh: Test that executing various binary files is rejected</title>
<updated>2021-01-30T15:10:26Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2019-12-30T21:32:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9b38ede3a347f9ae48d4b80878134f07ccc6845c'/>
<id>urn:sha1:9b38ede3a347f9ae48d4b80878134f07ccc6845c</id>
<content type='text'>
If executing a file fails with an [ENOEXEC] error, the shell executes the
file as a shell script, except that this execution may instead result in an
error message if the file is binary.

Per a recent Austin Group interpretation, we will need to change this to
allow a concatenation of a shell script and a binary payload. See
Austin Group bugs #1226 and #1250.

MFC after:	1 week

(cherry picked from commit 2a55bade0ed3e08a8c4f922df0ecf67d1ee32f53)
</content>
</entry>
<entry>
<title>bin/setfacl: Remove unused headers.</title>
<updated>2020-12-26T01:37:16Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2020-12-12T02:26:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b26ad614434baac7a4b5e34710cf2eda534a9a01'/>
<id>urn:sha1:b26ad614434baac7a4b5e34710cf2eda534a9a01</id>
<content type='text'>
(cherry picked from commit dd1ce6c7f19ad7ccd2eb9be78655238ae1b4ea5e)
</content>
</entry>
<entry>
<title>bin/stty: Remove unneeded headers.</title>
<updated>2020-12-26T01:36:07Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2020-12-12T02:24:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bc680a5ff383935fa1ebe8d90f98189e33b6c920'/>
<id>urn:sha1:bc680a5ff383935fa1ebe8d90f98189e33b6c920</id>
<content type='text'>
(cherry picked from commit 3601af4da2686fd29335abce8859205b64c312dd)
</content>
</entry>
</feed>
