summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-07-04 04:05:29 +0000
committerguenther <guenther@openbsd.org>2016-07-04 04:05:29 +0000
commit001de9cd55b970c6c034ab4cc0563565a925f66b (patch)
tree00e72f521417bfb2704b43ea857b0d4eaff1cd35
parentUse fstatat() instead of crafting a filename to use with stat() (diff)
downloadwireguard-openbsd-001de9cd55b970c6c034ab4cc0563565a925f66b.tar.xz
wireguard-openbsd-001de9cd55b970c6c034ab4cc0563565a925f66b.zip
Drop support for the undocumented second argument (same as -N option)
ok deraadt@
-rw-r--r--sbin/savecore/savecore.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
index feb8baec3ff..45cf7a0c490 100644
--- a/sbin/savecore/savecore.c
+++ b/sbin/savecore/savecore.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: savecore.c,v 1.55 2015/10/18 03:17:48 deraadt Exp $ */
+/* $OpenBSD: savecore.c,v 1.56 2016/07/04 04:05:29 guenther Exp $ */
/* $NetBSD: savecore.c,v 1.26 1996/03/18 21:16:05 leo Exp $ */
/*-
@@ -161,12 +161,10 @@ main(int argc, char *argv[])
argv += optind;
if (!clear) {
- if (argc != 1 && argc != 2)
+ if (argc != 1)
usage();
dirn = argv[0];
}
- if (argc == 2)
- kernel = argv[1];
(void)time(&now);
kmem_setup();