summaryrefslogtreecommitdiff
path: root/networking/ntpd.c
diff options
context:
space:
mode:
authorDenys Vlasenko2019-07-02 11:28:18 +0200
committerDenys Vlasenko2019-07-02 11:28:18 +0200
commitcaecfdc20d450686cd1f7e9b5f650322f894b3c2 (patch)
tree4d75086224c857790113e0500047d3a92fad9d3d /networking/ntpd.c
parent9663bbd17ba3ab9f7921d7c46f07d177cb4a1435 (diff)
downloadbusybox-caecfdc20d450686cd1f7e9b5f650322f894b3c2.zip
busybox-caecfdc20d450686cd1f7e9b5f650322f894b3c2.tar.gz
ntpd: abort if argvs are (unexpectedly) given
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ntpd.c')
-rw-r--r--networking/ntpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c
index cd6da2b..d55b070 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