aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/yes
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2018-06-19 23:43:14 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2018-06-19 23:43:14 +0000
commit7672a0148f79063eac8f8e0beb0db5350d02d5d4 (patch)
tree413e973544ce3e0e8cc69352f5f5824b3a8821d5 /usr.bin/yes
parentd18e2bca4b12aba1820c63c125e409418007db49 (diff)
downloadsrc-7672a0148f79063eac8f8e0beb0db5350d02d5d4.tar.gz
src-7672a0148f79063eac8f8e0beb0db5350d02d5d4.zip
Notes
Diffstat (limited to 'usr.bin/yes')
-rw-r--r--usr.bin/yes/yes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/yes/yes.c b/usr.bin/yes/yes.c
index 26af8d7cbb3d..03111ed53fc1 100644
--- a/usr.bin/yes/yes.c
+++ b/usr.bin/yes/yes.c
@@ -60,7 +60,7 @@ main(int argc, char **argv)
size_t more;
ssize_t ret;
- if (caph_limit_stdio() < 0 || (cap_enter() < 0 && errno != ENOSYS))
+ if (caph_limit_stdio() < 0 || caph_enter() < 0)
err(1, "capsicum");
if (argc > 1) {