diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-11-24 14:58:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-11-24 14:58:45 +0000 |
commit | 483e0ed6dd1a544018c14b40a196d59999921fb2 (patch) | |
tree | 8bdafa979481f6a9cfe190fd7d8a9877372375a9 /usr.sbin | |
parent | 34c59fcd469b608121a45d78b3498f7c4223fd40 (diff) |
cope with incorrect extra arguments; from Rodolfo Gouveia
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/apmd/apmd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c index 0578bee4580..58ad09e088f 100644 --- a/usr.sbin/apmd/apmd.c +++ b/usr.sbin/apmd/apmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apmd.c,v 1.48 2007/07/18 13:34:23 mcbride Exp $ */ +/* $OpenBSD: apmd.c,v 1.49 2007/11/24 14:58:44 deraadt Exp $ */ /* * Copyright (c) 1995, 1996 John T. Kohl @@ -569,6 +569,9 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; + if (argc != 0) + usage(); + if (doperf == PERF_NONE) doperf = PERF_MANUAL; |