diff options
author | 2015-10-03 05:15:36 +0000 | |
---|---|---|
committer | 2015-10-03 05:15:36 +0000 | |
commit | 34d0321520b4ad1bcee4fcb26d1baa08ed9fd046 (patch) | |
tree | e0b4810efdb99879fbffdfff48242eeaac121c0e | |
parent | leave does a fork, but other than that it is boring stdio. (diff) | |
download | wireguard-openbsd-34d0321520b4ad1bcee4fcb26d1baa08ed9fd046.tar.xz wireguard-openbsd-34d0321520b4ad1bcee4fcb26d1baa08ed9fd046.zip |
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
-rw-r--r-- | usr.bin/kdump/kdump.c | 5 |
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); |