From: Jeremy Kerr Date: Wed, 4 Jun 2014 07:22:11 +0000 (+0800) Subject: discover/paths: Fix wget command with https and !DEBUG X-Git-Tag: v1.0.0~178 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=dcc2bd8913d3741614e971b0be12f490d8334538 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 --- 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;