stdenv: avoid setuid issues

See #300635.  Maybe in time we'll have a better solution.
This commit is contained in:
Vladimír Čunát 2024-04-10 07:52:44 +02:00
parent 28cd7a0fb5
commit 3299c31f44
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
1 changed files with 2 additions and 1 deletions

View File

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