]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix tail -f in capability mode.
authormarkj <markj@FreeBSD.org>
Fri, 6 Dec 2019 23:39:38 +0000 (23:39 +0000)
committermarkj <markj@FreeBSD.org>
Fri, 6 Dec 2019 23:39:38 +0000 (23:39 +0000)
commit933bec02d536ea3a82607bf90f6f382dd04ca621
tree99e0738d1d2e1e105115202d2bd44330e4b0bcdf
parent17df625c0f7b78bd5df88965b38213a909360b80
Fix tail -f in capability mode.

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
usr.bin/tail/tail.c