lib/external/fexec.c: run child with 022 umask
This commit is contained in:
1
lib/external/fexec.c
vendored
1
lib/external/fexec.c
vendored
@@ -69,6 +69,7 @@ pfcexec(struct xbps_handle *xhp, const char *file, const char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
umask(022);
|
||||||
(void)execv(file, __UNCONST(argv));
|
(void)execv(file, __UNCONST(argv));
|
||||||
_exit(errno);
|
_exit(errno);
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
|
Reference in New Issue
Block a user