summaryrefslogtreecommitdiff
path: root/usr.bin/lam
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2018-11-04 19:24:49 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2018-11-04 19:24:49 +0000
commit377421df9690cddad7f0c8cba84bd392e62a3b6c (patch)
tree8abd5aa51822658825b9055a2be48f3f3c0b7bcb /usr.bin/lam
parenteda66948fe3eb3134f19c97689f9ca55abce8565 (diff)
downloadsrc-test2-377421df9690cddad7f0c8cba84bd392e62a3b6c.tar.gz
src-test2-377421df9690cddad7f0c8cba84bd392e62a3b6c.zip
Notes
Diffstat (limited to 'usr.bin/lam')
-rw-r--r--usr.bin/lam/lam.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/lam/lam.c b/usr.bin/lam/lam.c
index 4f42921ad388..693e9903cd36 100644
--- a/usr.bin/lam/lam.c
+++ b/usr.bin/lam/lam.c
@@ -136,8 +136,7 @@ getargs(char *av[])
else if ((ip->fp = fopen(p, "r")) == NULL) {
err(1, "%s", p);
}
- if (cap_rights_limit(fileno(ip->fp), &rights_ro) < 0
- && errno != ENOSYS)
+ if (caph_rights_limit(fileno(ip->fp), &rights_ro) < 0)
err(1, "unable to limit rights on: %s", p);
ip->pad = P;
if (!ip->sepstring)