From 001de9cd55b970c6c034ab4cc0563565a925f66b Mon Sep 17 00:00:00 2001 From: guenther Date: Mon, 4 Jul 2016 04:05:29 +0000 Subject: [PATCH] Drop support for the undocumented second argument (same as -N option) ok deraadt@ --- sbin/savecore/savecore.c | 6 ++---- 1 file 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(); -- 2.20.1