diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2008-05-14 09:32:19 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2008-05-14 09:32:19 +0000 |
commit | 095830aa2145325f286f805ca2494b4e6b28b0ca (patch) | |
tree | 57b026292f242d66afca69799bf3c386cc8dea76 | |
parent | 1b20ef6303c4e611e2f121a3a7bad68f19cd5a46 (diff) |
ntpd missed the argument check sweep.
-rw-r--r-- | usr.sbin/ntpd/ntpd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/ntpd.c b/usr.sbin/ntpd/ntpd.c index 18dd1500841..9cfbc2b14a9 100644 --- a/usr.sbin/ntpd/ntpd.c +++ b/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 <henning@openbsd.org> @@ -124,6 +124,11 @@ main(int argc, char *argv[]) } } + argc -= optind; + argv += optind; + if (argc > 0) + usage(); + if (parse_config(conffile, &lconf)) exit(1); |