aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/lam
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/lam')
-rw-r--r--usr.bin/lam/lam.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/lam/lam.c b/usr.bin/lam/lam.c
index 9be72fed6ed6..8403b8b12d48 100644
--- a/usr.bin/lam/lam.c
+++ b/usr.bin/lam/lam.c
@@ -134,7 +134,8 @@ 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)
+ if (cap_rights_limit(fileno(ip->fp), &rights_ro) < 0
+ && errno != ENOSYS)
err(1, "unable to limit rights on: %s", p);
ip->pad = P;
if (!ip->sepstring)