Commit 74c4c959 authored by Timo Teräs's avatar Timo Teräs

db, url: fix exec sentinels

http://ewontfix.com/11/
parent 27217724
......@@ -1379,7 +1379,7 @@ static int do_remount(const char *path, const char *option)
if (pid == 0) {
execl("/bin/mount", "mount", "-o", "remount", "-o",
option, path, NULL);
option, path, (void*) 0);
return 1;
}
......
......@@ -70,11 +70,11 @@ static int fork_wget(const char *url, pid_t *ppid)
close(fds[0]);
dup2(open("/dev/null", O_RDONLY), STDIN_FILENO);
dup2(fds[1], STDOUT_FILENO);
execlp("wget", "wget", "-q", "-O", "-", url, NULL);
execlp("wget", "wget", "-q", "-O", "-", url, (void*) 0);
/* fall back to busybox wget
* See http://redmine.alpinelinux.org/issues/347
*/
execlp("busybox", "wget", "-q", "-O", "-", url, NULL);
execlp("busybox", "wget", "-q", "-O", "-", url, (void*) 0);
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