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).
This commit is contained in:
Juan RP 2019-06-18 13:35:38 +02:00
parent 0ee0aaa395
commit d36d37fc6a

View File

@ -48,7 +48,7 @@ pfcexec(struct xbps_handle *xhp, const char *file, const char **argv)
pid_t child; pid_t child;
int status; int status;
child = vfork(); child = fork();
switch (child) { switch (child) {
case 0: case 0:
/* /*