summaryrefslogtreecommitdiffstats
path: root/discover/paths.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-06-04 15:22:11 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-06-05 15:24:40 +0800
commitdcc2bd8913d3741614e971b0be12f490d8334538 (patch)
treee8bc60e15e2edc2f97f6bba26d5c94dc736f9215 /discover/paths.c
parent1d69ceee0b8fac1f4451a75b6e4b14ee2d5d91dc (diff)
downloadtalos-petitboot-dcc2bd8913d3741614e971b0be12f490d8334538.tar.gz
talos-petitboot-dcc2bd8913d3741614e971b0be12f490d8334538.zip
discover/paths: Fix wget command with https and !DEBUG
When DEBUG is undefed, we run out of wget arguments for loading https URLs. We need an extra element in the argv array to handle all possible arguments. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/paths.c')
-rw-r--r--discover/paths.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/discover/paths.c b/discover/paths.c
index 54774cf..0d414eb 100644
--- a/discover/paths.c
+++ b/discover/paths.c
@@ -310,8 +310,9 @@ static void load_wget(struct load_task *task, int flags)
pb_system_apps.wget,
"-O",
NULL, /* 2: local file */
- NULL,
- NULL,
+ NULL, /* 3 (optional): --quiet */
+ NULL, /* 4 (optional): --no-check-certificate */
+ NULL, /* 5: URL */
NULL,
};
int i;
OpenPOWER on IntegriCloud