From: deraadt Date: Wed, 7 Oct 2015 04:03:57 +0000 (+0000) Subject: We continue our tour through obscure BSD . This stdio-based X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6cfa7bda3af08bb75bd2821541765b5ceaf9cbf9;p=openbsd We continue our tour through obscure BSD . This stdio-based program may open files arbitrarily, so tame "stdio rpath" it from the start. --- diff --git a/usr.bin/lam/lam.c b/usr.bin/lam/lam.c index bade6206216..1f10025d6d3 100644 --- a/usr.bin/lam/lam.c +++ b/usr.bin/lam/lam.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lam.c,v 1.17 2015/01/16 06:40:09 deraadt Exp $ */ +/* $OpenBSD: lam.c,v 1.18 2015/10/07 04:03:57 deraadt Exp $ */ /* $NetBSD: lam.c,v 1.2 1994/11/14 20:27:42 jtc Exp $ */ /*- @@ -71,6 +71,9 @@ main(int argc, char *argv[]) { int i; + if (tame("stdio rpath", NULL) == -1) + err(1, "tame"); + /* Process arguments, set numfiles to file argument count. */ getargs(argc, argv); if (numfiles == 0)