Commit 64e0adf0 authored by Natanael Copa's avatar Natanael Copa
Browse files

url: unlink file before trying to download

parent 9d22718d
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment