summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-03 05:15:37 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-03 05:15:37 +0000
commit7893cb41d51094702aefd4dc383cc15e52eda428 (patch)
tree0de3b80b47ffaeef9e6dfcdbf482562c61611c45 /usr.bin
parent8a2bc04b6d7570d75aa48528fd2b42be078da008 (diff)
tame "stdio getpw rpath" can be done quite early after the getopt.
it might seem we can hoist the open above tame and then drop "rpath", but guenther found getprotobynumber can be called much later. ok guenther
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/kdump/kdump.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index e9ffe7a58b5..6d0b72e1b80 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kdump.c,v 1.107 2015/10/02 19:12:45 jmc Exp $ */
+/* $OpenBSD: kdump.c,v 1.108 2015/10/03 05:15:36 deraadt Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -241,6 +241,9 @@ main(int argc, char *argv[])
if (argc > optind)
usage();
+ if (tame("stdio getpw rpath", NULL) == -1)
+ err(1, "tame");
+
m = malloc(size = 1025);
if (m == NULL)
err(1, NULL);