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:
parent
0ee0aaa395
commit
d36d37fc6a
2
lib/external/fexec.c
vendored
2
lib/external/fexec.c
vendored
@ -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:
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user