summaryrefslogtreecommitdiff
path: root/usr.bin/wc
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2019-04-17 16:18:14 +0000
committerEd Maste <emaste@FreeBSD.org>2019-04-17 16:18:14 +0000
commitd76eef3430e27ec08548476dc1c1dbfe7f63b1f4 (patch)
tree63fa25f2869b9ba1f42c8bf8103a80181aa7d9ec /usr.bin/wc
parent7b558caee37422fcfa3842a1fdc8a838c0ccec8c (diff)
downloadsrc-test-d76eef3430e27ec08548476dc1c1dbfe7f63b1f4.tar.gz
src-test-d76eef3430e27ec08548476dc1c1dbfe7f63b1f4.zip
cap_fileargs: chase r346315, update fileargs_init in consumers
Reported by: ci.freebsd.org (8 times so far) MFC after: 3 weeks MFC with: r346315 Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=346316
Diffstat (limited to 'usr.bin/wc')
-rw-r--r--usr.bin/wc/wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/wc/wc.c b/usr.bin/wc/wc.c
index 0517b67de69de..2d3d57df36969 100644
--- a/usr.bin/wc/wc.c
+++ b/usr.bin/wc/wc.c
@@ -133,7 +133,7 @@ main(int argc, char *argv[])
(void)signal(SIGINFO, siginfo_handler);
fa = fileargs_init(argc, argv, O_RDONLY, 0,
- cap_rights_init(&rights, CAP_READ, CAP_FSTAT));
+ cap_rights_init(&rights, CAP_READ, CAP_FSTAT), FA_OPEN);
if (fa == NULL) {
xo_warn("Unable to init casper");
exit(1);