diff --git a/0000-hotfix.patch b/0000-hotfix.patch index 36bd1b5..c5ae2a7 100644 --- a/0000-hotfix.patch +++ b/0000-hotfix.patch @@ -55,7 +55,7 @@ Index: libguestfs-1.26.10/builder/downloader.ml | _ -> (* Any other protocol. *) (* Get the status code first to ensure the file exists. *) - let cmd = sprintf "%s%s -g -o /dev/null -I -w '%%{http_code}' %s" -+ let cmd = sprintf "%s%s -L -g -o /dev/null -I -w '%%{http_code}' %s" ++ let cmd = sprintf "%s%s -L --max-redirs 5 -g -o /dev/null -I -w '%%{http_code}' %s" t.curl (if t.verbose then "" else " -s -S") (quote uri) in @@ -64,7 +64,7 @@ Index: libguestfs-1.26.10/builder/downloader.ml (* Now download the file. *) - let cmd = sprintf "%s%s -g -o %s %s" -+ let cmd = sprintf "%s%s -L -g -o %s %s" ++ let cmd = sprintf "%s%s -L --max-redirs 5 -g -o %s %s" t.curl (if t.verbose then "" else if progress_bar then " -#" else " -s -S") (quote filename_new) (quote uri) in