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-caecfdc20d450686cd1f7e9b5f650322f894b3c2.tar.gz |
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) "d" /* compat */ "46aAbgL" /* compat, ignored */ "\0" - "dd:wn" /* -d: counter; -p: list; -w implies -n */ + "=0" /* should have no arguments */ + ":dd:wn" /* -d: counter; -p: list; -w implies -n */ IF_FEATURE_NTPD_SERVER(":Il") /* -I implies -l */ IF_FEATURE_NTP_AUTH(, &key_file_path) , &peers, &G.script_name |