summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-06 00:24:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-06 00:24:21 +0000
commit255905d01c6856153779a8686d3c01602f2323cd (patch)
treecff792f83760d72f38842817c14e2f78541832af /usr.bin
parentd8161399ee7c3f673ff2fecd2416e4301b8132f3 (diff)
Appears that tame "stdio getpw rpath" will satisfy all code paths.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/stat/stat.c5
1 files changed, 4 insertions, 1 deletions
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;