aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tee
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/tee
parentd18e2bca4b12aba1820c63c125e409418007db49 (diff)
Notes
Diffstat (limited to 'usr.bin/tee')
-rw-r--r--usr.bin/tee/tee.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tee/tee.c b/usr.bin/tee/tee.c
index 6e30881012f9..b6d438afd96d 100644
--- a/usr.bin/tee/tee.c
+++ b/usr.bin/tee/tee.c
@@ -109,7 +109,7 @@ main(int argc, char *argv[])
} else
add(fd, *argv);
- if (cap_enter() < 0 && errno != ENOSYS)
+ if (caph_enter() < 0)
err(EXIT_FAILURE, "unable to enter capability mode");
while ((rval = read(STDIN_FILENO, buf, BSIZE)) > 0)
for (p = head; p; p = p->next) {