diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-07-02 11:28:18 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-07-02 11:28:18 +0200 |
commit | caecfdc20d450686cd1f7e9b5f650322f894b3c2 (patch) | |
tree | 4d75086224c857790113e0500047d3a92fad9d3d | |
parent | 9663bbd17ba3ab9f7921d7c46f07d177cb4a1435 (diff) | |
download | busybox-w32-caecfdc20d450686cd1f7e9b5f650322f894b3c2.tar.gz busybox-w32-caecfdc20d450686cd1f7e9b5f650322f894b3c2.tar.bz2 busybox-w32-caecfdc20d450686cd1f7e9b5f650322f894b3c2.zip |
ntpd: abort if argvs are (unexpectedly) given
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/ntpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index cd6da2b38..d55b070c5 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -2436,7 +2436,8 @@ static NOINLINE void ntp_init(char **argv) | |||
2436 | "d" /* compat */ | 2436 | "d" /* compat */ |
2437 | "46aAbgL" /* compat, ignored */ | 2437 | "46aAbgL" /* compat, ignored */ |
2438 | "\0" | 2438 | "\0" |
2439 | "dd:wn" /* -d: counter; -p: list; -w implies -n */ | 2439 | "=0" /* should have no arguments */ |
2440 | ":dd:wn" /* -d: counter; -p: list; -w implies -n */ | ||
2440 | IF_FEATURE_NTPD_SERVER(":Il") /* -I implies -l */ | 2441 | IF_FEATURE_NTPD_SERVER(":Il") /* -I implies -l */ |
2441 | IF_FEATURE_NTP_AUTH(, &key_file_path) | 2442 | IF_FEATURE_NTP_AUTH(, &key_file_path) |
2442 | , &peers, &G.script_name | 2443 | , &peers, &G.script_name |