Commit 0545fa0d authored by Timo Teräs's avatar Timo Teräs

pkg: reset umask for package scripts

It is unreasonable to assume that all package writers would except
to reset umask themselves. It's done currently in most packages,
but we had first issue of this kind recently, so better just reset
parent ac0a9659
......@@ -1019,6 +1019,7 @@ void apk_ipkg_run_script(struct apk_installed_package *ipkg,
if (pid == -1)
goto error;
if (pid == 0) {
if (fchdir(root_fd) == 0 && chroot(".") == 0)
execve(fn, argv, environment);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment