From: Denys Vlasenko Date: Tue, 2 Jul 2019 09:28:18 +0000 (+0200) Subject: ntpd: abort if argvs are (unexpectedly) given X-Git-Tag: 1_32_0~184 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=caecfdc20d450686cd1f7e9b5f650322f894b3c2;p=oweals%2Fbusybox.git ntpd: abort if argvs are (unexpectedly) given Signed-off-by: Denys Vlasenko --- 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