summaryrefslogtreecommitdiff
path: root/src/url.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-16 09:58:27 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-16 09:58:27 +0000
commit7a50aa61b241e7610ccbad8a119308960d9ddb29 (patch)
treeea1ee191ac0a1f45d34a31892ff9bd8420ad1ecb /src/url.c
parentd8837aa6f4e59be33f305071933274c21f6cb88b (diff)
downloadapk-tools-7a50aa61b241e7610ccbad8a119308960d9ddb29.tar.gz
apk-tools-7a50aa61b241e7610ccbad8a119308960d9ddb29.tar.bz2
apk-tools-7a50aa61b241e7610ccbad8a119308960d9ddb29.tar.xz
apk-tools-7a50aa61b241e7610ccbad8a119308960d9ddb29.zip
url: allow wget report error messages
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/url.c b/src/url.c
index a1de589..656aef6 100644
--- a/src/url.c
+++ b/src/url.c
@@ -47,10 +47,9 @@ static int fork_wget(const char *url)
if (pid == 0) {
setsid();
close(fds[0]);
- dup2(open("/dev/null", O_WRONLY), STDERR_FILENO);
dup2(open("/dev/null", O_RDONLY), STDIN_FILENO);
dup2(fds[1], STDOUT_FILENO);
- execlp("wget", "wget", "-O", "-", url, NULL);
+ execlp("wget", "wget", "-q", "-O", "-", url, NULL);
exit(0);
}