stdenv: avoid setuid issues
See #300635. Maybe in time we'll have a better solution.
This commit is contained in:
parent
28cd7a0fb5
commit
3299c31f44
1 changed files with 2 additions and 1 deletions
|
@ -1421,7 +1421,8 @@ fixupPhase() {
|
|||
# Make sure everything is writable so "strip" et al. work.
|
||||
local output
|
||||
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
|
||||
|
||||
runHook preFixup
|
||||
|
|
Loading…
Reference in a new issue