Blame 0003-url-lib.sh-handle-0-size-files-with-curl.patch

Harald Hoyer fe48c9
From 5c274467d6a4959b7f451f9a211ffbb38d69b641 Mon Sep 17 00:00:00 2001
Harald Hoyer fe48c9
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer fe48c9
Date: Tue, 20 Aug 2013 16:15:17 +0200
Harald Hoyer fe48c9
Subject: [PATCH] url-lib.sh: handle 0-size files with curl
Harald Hoyer fe48c9
Harald Hoyer fe48c9
https://bugzilla.redhat.com/show_bug.cgi?id=989133#c9
Harald Hoyer fe48c9
---
Harald Hoyer fe48c9
 modules.d/45url-lib/url-lib.sh | 2 +-
Harald Hoyer fe48c9
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer fe48c9
Harald Hoyer fe48c9
diff --git a/modules.d/45url-lib/url-lib.sh b/modules.d/45url-lib/url-lib.sh
Harald Hoyer fe48c9
index 34d42ba..12df9b4 100755
Harald Hoyer fe48c9
--- a/modules.d/45url-lib/url-lib.sh
Harald Hoyer fe48c9
+++ b/modules.d/45url-lib/url-lib.sh
Harald Hoyer fe48c9
@@ -64,7 +64,7 @@ curl_fetch_url() {
Harald Hoyer fe48c9
     local url="$1" outloc="$2"
Harald Hoyer fe48c9
     echo "$url" > /proc/self/fd/0
Harald Hoyer fe48c9
     if [ -n "$outloc" ]; then
Harald Hoyer fe48c9
-        curl $curl_args --output "$outloc" -- "$url" || return $?
Harald Hoyer fe48c9
+        curl $curl_args --output - -- "$url" > "$outloc" || return $?
Harald Hoyer fe48c9
     else
Harald Hoyer fe48c9
         local outdir="$(mkuniqdir /tmp curl_fetch_url)"
Harald Hoyer fe48c9
         ( cd "$outdir"; curl $curl_args --remote-name "$url" || return $? )