]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
url-lib/url-lib.sh: turn off curl globbing
authorHarald Hoyer <harald@redhat.com>
Tue, 28 May 2013 14:15:24 +0000 (16:15 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 28 May 2013 14:16:26 +0000 (16:16 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=907497

modules.d/45url-lib/url-lib.sh

index 4a3d56d5578e14b0f994b65214203c75bcef2533..c00ca18447ddfc930c00e3789988f852efb7b1b5 100755 (executable)
@@ -54,7 +54,7 @@ add_url_handler() {
 
 export CURL_HOME="/run/initramfs/url-lib"
 mkdir -p $CURL_HOME
-curl_args="--location --retry 3 --fail --show-error"
+curl_args="--globoff --location --retry 3 --fail --show-error"
 getargbool 0 rd.noverifyssl && curl_args="$curl_args --insecure"
 
 proxy=$(getarg proxy=)
@@ -64,7 +64,7 @@ curl_fetch_url() {
     local url="$1" outloc="$2"
     echo "$url" > /proc/self/fd/0
     if [ -n "$outloc" ]; then
-        curl --globoff $curl_args --output "$outloc" "$url" || return $?
+        curl $curl_args --output "$outloc" "$url" || return $?
     else
         local outdir="$(mkuniqdir /tmp curl_fetch_url)"
         ( cd "$outdir"; curl $curl_args --remote-name "$url" || return $? )