stdenv: avoid setuid issues
See #300635. Maybe in time we'll have a better solution.
This commit is contained in:
parent
28cd7a0fb5
commit
3299c31f44
|
@ -1421,7 +1421,8 @@ fixupPhase() {
|
||||||
# Make sure everything is writable so "strip" et al. work.
|
# Make sure everything is writable so "strip" et al. work.
|
||||||
local output
|
local output
|
||||||
for output in $(getAllOutputNames); do
|
for output in $(getAllOutputNames); do
|
||||||
if [ -e "${!output}" ]; then chmod -R u+w "${!output}"; fi
|
# for set*id bits see #300635
|
||||||
|
if [ -e "${!output}" ]; then chmod -R u+w,u-s,g-s "${!output}"; fi
|
||||||
done
|
done
|
||||||
|
|
||||||
runHook preFixup
|
runHook preFixup
|
||||||
|
|
Loading…
Reference in New Issue
Block a user