From 861152d234b4bbf6f28bd2aaf2349c3d3e31863e Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Wed, 15 Mar 2017 15:57:11 +0000 Subject: [PATCH] Do not die on system built without CAPSICUM --- usr.bin/lam/lam.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/lam/lam.c b/usr.bin/lam/lam.c index 9be72fed6ed..8403b8b12d4 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)