]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cat: fix cap_rights_init usage
authorEd Maste <emaste@FreeBSD.org>
Thu, 15 Feb 2024 00:03:40 +0000 (19:03 -0500)
committerEd Maste <emaste@FreeBSD.org>
Thu, 15 Feb 2024 00:37:54 +0000 (19:37 -0500)
commit05f530f4d2bb15fda3d258b3bd92d4515d9ef39f
tree5f21e477fad5b832d40c6afe02bb65c02a55cedc
parentd79b6b8ec267e7eef6e07cf4245159705e24acd5
cat: fix cap_rights_init usage

Capability rights passed to cap_rights_* are not simple bitmaks and
cannot be ORed together in general (although it will work for certain
subsets of rights).

PR: 277057
Reported by: asomers, markj
bin/cat/cat.c