diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-06-03 16:22:09 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-06-03 16:22:09 +0300 |
commit | 15c0c4e7a1291915a4ea4115e94d2b747d5091ac (patch) | |
tree | dd5a015b76b1bdfaf86f06641f03805d8162a142 | |
parent | 4d172a194addc49851e558ea390d3045894e3230 (diff) | |
download | rpm-15c0c4e7a1291915a4ea4115e94d2b747d5091ac.tar.gz rpm-15c0c4e7a1291915a4ea4115e94d2b747d5091ac.tar.bz2 rpm-15c0c4e7a1291915a4ea4115e94d2b747d5091ac.zip |
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...
-rw-r--r-- | rpmio/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/url.c b/rpmio/url.c index 1db20d0ac..e4b15d2e4 100644 --- a/rpmio/url.c +++ b/rpmio/url.c @@ -110,7 +110,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) { |