svn commit: r315309 - head/usr.bin/lam
Baptiste Daroussin
bapt at FreeBSD.org
Wed Mar 15 15:57:13 UTC 2017
Author: bapt
Date: Wed Mar 15 15:57:11 2017
New Revision: 315309
URL: https://svnweb.freebsd.org/changeset/base/315309
Log:
Do not die on system built without CAPSICUM
Modified:
head/usr.bin/lam/lam.c
Modified: head/usr.bin/lam/lam.c
==============================================================================
--- head/usr.bin/lam/lam.c Wed Mar 15 15:33:32 2017 (r315308)
+++ head/usr.bin/lam/lam.c Wed Mar 15 15:57:11 2017 (r315309)
@@ -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)
More information about the svn-src-all
mailing list