lib/external/fexec.c: run child with 022 umask
This commit is contained in:
parent
c3f6f485a3
commit
008e1ed901
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));
|
||||
_exit(errno);
|
||||
/* NOTREACHED */
|
||||
|
Loading…
Reference in New Issue
Block a user