From d36d37fc6a71213715efe130f653956e956a0241 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 18 Jun 2019 13:35:38 +0200 Subject: [PATCH] lib/external/fexec.c: fix potential insecure usage in vfork(). Reported by clang-analyzer. After reading the linux man-pages vfork(2) manpage I came to the conclusion that it's better to change the behaviour of the original source (NetBSD) and change this to use fork(2). --- lib/external/fexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/external/fexec.c b/lib/external/fexec.c index 340e703a..b15af0cf 100644 --- a/lib/external/fexec.c +++ b/lib/external/fexec.c @@ -48,7 +48,7 @@ pfcexec(struct xbps_handle *xhp, const char *file, const char **argv) pid_t child; int status; - child = vfork(); + child = fork(); switch (child) { case 0: /*