diff --git a/src/usr.sbin/ntpd/ntpd.c b/src/usr.sbin/ntpd/ntpd.c index 18dd1500..9cfbc2b1 100644 --- a/src/usr.sbin/ntpd/ntpd.c +++ b/src/usr.sbin/ntpd/ntpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.c,v 1.58 2007/12/31 17:21:35 henning Exp $ */ +/* $OpenBSD: ntpd.c,v 1.59 2008/05/14 09:32:18 pyr Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -124,6 +124,11 @@ main(int argc, char *argv[]) } } + argc -= optind; + argv += optind; + if (argc > 0) + usage(); + if (parse_config(conffile, &lconf)) exit(1);