lib/external/fexec.c: run child with 022 umask

This commit is contained in:
Duncaen 2019-06-14 21:08:36 +02:00
parent c3f6f485a3
commit 008e1ed901

View File

@ -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 */