Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2017 15:57:12 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315309 - head/usr.bin/lam
Message-ID:  <201703151557.v2FFvCYS021385@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703151557.v2FFvCYS021385>