artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48d5baa
)
Appears that tame "stdio getpw rpath" will satisfy all code paths.
author
deraadt
<deraadt@openbsd.org>
Tue, 6 Oct 2015 00:24:20 +0000
(
00:24
+0000)
committer
deraadt
<deraadt@openbsd.org>
Tue, 6 Oct 2015 00:24:20 +0000
(
00:24
+0000)
usr.bin/stat/stat.c
patch
|
blob
|
history
diff --git
a/usr.bin/stat/stat.c
b/usr.bin/stat/stat.c
index
b2fcc30
..
3a3116f
100644
(file)
--- a/
usr.bin/stat/stat.c
+++ b/
usr.bin/stat/stat.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: stat.c,v 1.1
8 2013/11/26 21:08:12
deraadt Exp $ */
+/* $OpenBSD: stat.c,v 1.1
9 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;