From cc7a658a5119d083aefc423d81c6c11f904f45c3 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 6 Oct 2015 00:24:20 +0000 Subject: [PATCH] Appears that tame "stdio getpw rpath" will satisfy all code paths. --- usr.bin/stat/stat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.20.1