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)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to