diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-03-15 15:57:11 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-03-15 15:57:11 +0000 |
commit | 861152d234b4bbf6f28bd2aaf2349c3d3e31863e (patch) | |
tree | 83e18a8ae7e10518ca26d5ed2322698819c6b905 /usr.bin/lam/lam.c | |
parent | 0e6bc811e487a1124258332744de491033c14cd5 (diff) | |
download | src-861152d234b4bbf6f28bd2aaf2349c3d3e31863e.tar.gz src-861152d234b4bbf6f28bd2aaf2349c3d3e31863e.zip |
Do not die on system built without CAPSICUM
Notes
Notes:
svn path=/head/; revision=315309
Diffstat (limited to 'usr.bin/lam/lam.c')
-rw-r--r-- | usr.bin/lam/lam.c | 3 |
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) |