diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-21 08:40:50 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-21 08:40:50 +0000 |
commit | 64e0adf0c7609e30c76ec190ec843311c956f862 (patch) | |
tree | 4016f580be5b8d51e2954d4a4b9cdc95f650737e | |
parent | 9d22718d1dfd95c335ba6b978aae47c437c97b5d (diff) | |
download | apk-tools-64e0adf0c7609e30c76ec190ec843311c956f862.tar.gz apk-tools-64e0adf0c7609e30c76ec190ec843311c956f862.tar.bz2 apk-tools-64e0adf0c7609e30c76ec190ec843311c956f862.tar.xz apk-tools-64e0adf0c7609e30c76ec190ec843311c956f862.zip |
url: unlink file before trying to download
-rw-r--r-- | src/url.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -91,6 +91,7 @@ int apk_url_download(const char *url, const char *file) if (pid == 0) { setsid(); dup2(open("/dev/null", O_RDONLY), STDIN_FILENO); + unlink(file); execlp("wget", "wget", "-q", "-O", file, url, NULL); exit(0); } |