From 6cfa7bda3af08bb75bd2821541765b5ceaf9cbf9 Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 7 Oct 2015 04:03:57 +0000 Subject: [PATCH] We continue our tour through obscure BSD . This stdio-based program may open files arbitrarily, so tame "stdio rpath" it from the start. --- usr.bin/lam/lam.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.20.1