summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-06-03 16:22:09 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-06-11 11:48:07 +0300
commit5c75ee0f7a99a69af17c9be23b1cd64f77a4380c (patch)
tree22c96c290341e5dcba55fe12a7985b453937c893
parente61d6b1cea27c1cd9aa3143032d96d2e6cdc9830 (diff)
downloadrpm-5c75ee0f7a99a69af17c9be23b1cd64f77a4380c.tar.gz
Fix "empty reply from server" curl-syndrome with url retrieval (RhBug:598988)
- We were adding a trailing newline to urlhelper command line passed to execvp(), with the newline ending up in the URL passed to curl. Many servers dont seem to mind the extra newline, but some do. Oh well... (cherry picked from commit 15c0c4e7a1291915a4ea4115e94d2b747d5091ac)
-rw-r--r--rpmio/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/url.c b/rpmio/url.c
index f20be1a83..605629dc9 100644
--- a/rpmio/url.c
+++ b/rpmio/url.c
@@ -262,7 +262,7 @@ int urlGetFile(const char * url, const char * dest)
/* XXX TODO: sanity checks like target == dest... */
- rasprintf(&cmd, "%s %s %s\n", urlhelper, target, url);
+ rasprintf(&cmd, "%s %s %s", urlhelper, target, url);
urlhelper = _free(urlhelper);
if ((pid = fork()) == 0) {