<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/tail, branch upstream/13.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=upstream%2F13.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=upstream%2F13.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2021-08-21T16:18:21Z</updated>
<entry>
<title>tail: Add regression tests for -f and -F</title>
<updated>2021-08-21T16:18:21Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2021-07-05T15:01:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4c6246b76ed951680d6b9491fbb9497160a4ca16'/>
<id>urn:sha1:4c6246b76ed951680d6b9491fbb9497160a4ca16</id>
<content type='text'>
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 58b1a126b98f9d64f30246c90d6c049fd78dda6b)
</content>
</entry>
<entry>
<title>tail: Fix -f with stdin</title>
<updated>2021-08-21T16:18:17Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2021-07-08T21:40:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9bfe19ff8253d08482cbbbf59cca435c4de87ac5'/>
<id>urn:sha1:9bfe19ff8253d08482cbbbf59cca435c4de87ac5</id>
<content type='text'>
Based on a patch from swills@.

(cherry picked from commit 7e11889959a6c92f05e1c1949deb73295ce60bac)
</content>
</entry>
<entry>
<title>tail: fix "tail -F" file rotation detection</title>
<updated>2021-03-18T20:12:24Z</updated>
<author>
<name>Chuck Silvers</name>
<email>chs@FreeBSD.org</email>
</author>
<published>2021-02-02T00:21:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8c59e863e2c03c3b4ab2c403243561a4cc4fcb10'/>
<id>urn:sha1:8c59e863e2c03c3b4ab2c403243561a4cc4fcb10</id>
<content type='text'>
When checking if the newly opened file is the same as the old one,
we need to fstat() the new file descriptor, not the old one again.

Reviewed by:	glebius
Sponsored by:	Netflix

(cherry picked from commit 7787e7eed9d2a43fb6eb66666040f1b495995a2f)
</content>
</entry>
<entry>
<title>Use -F instead of -f in tail(1) examples</title>
<updated>2020-03-22T21:51:50Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2020-03-22T21:51:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c0f2b64a8945fe4a217e8969c5c278a59f728a01'/>
<id>urn:sha1:c0f2b64a8945fe4a217e8969c5c278a59f728a01</id>
<content type='text'>
There is an example in tail(1) manual page explaining how to use tail(1) to
track the contents of /var/log/messages. The example uses the -f flag to
follow the file. The problem with the -f flag is that it cannot handle the
situation where /var/log/messages is rotated. Hence, use -F instead in the
example.

Reviewed by:	asomers
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D24157
</content>
</entry>
<entry>
<title>Update Makefile.depend files</title>
<updated>2019-12-11T17:37:53Z</updated>
<author>
<name>Simon J. Gerraty</name>
<email>sjg@FreeBSD.org</email>
</author>
<published>2019-12-11T17:37:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2c9a9dfc187d171de6b92654d71b977f067ed641'/>
<id>urn:sha1:2c9a9dfc187d171de6b92654d71b977f067ed641</id>
<content type='text'>
Update a bunch of Makefile.depend files as
a result of adding Makefile.depend.options files

Reviewed by:	 bdrewery
MFC after:	1 week
Sponsored by:   Juniper Networks
Differential Revision:  https://reviews.freebsd.org/D22494
</content>
</entry>
<entry>
<title>Add Makefile.depend.options</title>
<updated>2019-12-11T17:37:37Z</updated>
<author>
<name>Simon J. Gerraty</name>
<email>sjg@FreeBSD.org</email>
</author>
<published>2019-12-11T17:37:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5ab1c5846ff41be24b1f6beb0317bf8258cd4409'/>
<id>urn:sha1:5ab1c5846ff41be24b1f6beb0317bf8258cd4409</id>
<content type='text'>
Leaf directories that have dependencies impacted
by options need a Makefile.depend.options file
to avoid churn in Makefile.depend

DIRDEPS for cases such as OPENSSL, TCP_WRAPPERS etc
can be set in local.dirdeps-options.mk
which can add to those set in Makefile.depend.options

See share/mk/dirdeps-options.mk

Reviewed by:	 bdrewery
MFC after:	1 week
Sponsored by:   Juniper Networks
Differential Revision:  https://reviews.freebsd.org/D22469
</content>
</entry>
<entry>
<title>Fix tail -f in capability mode.</title>
<updated>2019-12-06T23:39:38Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2019-12-06T23:39:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=eee07d30a0b3ff6448ce3441b8808c5529a9505d'/>
<id>urn:sha1:eee07d30a0b3ff6448ce3441b8808c5529a9505d</id>
<content type='text'>
We were not adding CAP_EVENT to input file capabilities, so kevent()
always failed with ENOTCAPABLE.  tail implements a fallback mode to
poll the file in this case, so the failure was not apparent.

Reviewed by:	emaste
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D22709
</content>
</entry>
<entry>
<title>fileargs_init() sets errno on failure.</title>
<updated>2019-11-06T01:42:30Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2019-11-06T01:42:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7ef518c05aca09c9ecfadd64b2055dfc2d6f6700'/>
<id>urn:sha1:7ef518c05aca09c9ecfadd64b2055dfc2d6f6700</id>
<content type='text'>
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>tail: fix the checks if the file was rotated</title>
<updated>2019-06-09T22:55:21Z</updated>
<author>
<name>Mariusz Zaborski</name>
<email>oshogbo@FreeBSD.org</email>
</author>
<published>2019-06-09T22:55:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c851fce6d779e8340609d7e2364829c61cbcb1ef'/>
<id>urn:sha1:c851fce6d779e8340609d7e2364829c61cbcb1ef</id>
<content type='text'>
The freopen(3) was replaced with fileargs_open(3) and fclose(3).
In the following function, we skip if the stream is standard in, so it is
safe to do so.
This also requires us to change the logic first to open the file and then
check its status. The stat(2) is disallowed in capability mode.

This commit unbrakes the -F option.
The bug was introduced in the r348708.

Reported by:	pho
Tested by:	pho
</content>
</entry>
<entry>
<title>tail: style nits</title>
<updated>2019-06-09T11:21:29Z</updated>
<author>
<name>Mariusz Zaborski</name>
<email>oshogbo@FreeBSD.org</email>
</author>
<published>2019-06-09T11:21:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2fe0bee4bbd4c717cd76d399dc59189511856d88'/>
<id>urn:sha1:2fe0bee4bbd4c717cd76d399dc59189511856d88</id>
<content type='text'>
</content>
</entry>
</feed>
