From 255905d01c6856153779a8686d3c01602f2323cd Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 6 Oct 2015 00:24:21 +0000 Subject: Appears that tame "stdio getpw rpath" will satisfy all code paths. --- usr.bin/stat/stat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/stat/stat.c b/usr.bin/stat/stat.c index b2fcc301082..3a3116f4cbe 100644 --- a/usr.bin/stat/stat.c +++ b/usr.bin/stat/stat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stat.c,v 1.18 2013/11/26 21:08:12 deraadt Exp $ */ +/* $OpenBSD: stat.c,v 1.19 2015/10/06 00:24:20 deraadt Exp $ */ /* $NetBSD: stat.c,v 1.19 2004/06/20 22:20:16 jmc Exp $ */ /* @@ -158,6 +158,9 @@ main(int argc, char *argv[]) int lsF, fmtchar, usestat, fn, nonl, quiet; char *statfmt, *options, *synopsis; + if (tame("stdio getpw rpath", NULL) == -1) + err(1, "tame"); + lsF = 0; fmtchar = '\0'; usestat = 0; -- cgit v1.2.3