lol

stdenv: avoid setuid issues

See #300635. Maybe in time we'll have a better solution.

+2 -1
+2 -1
pkgs/stdenv/generic/setup.sh
··· 1421 1421 # Make sure everything is writable so "strip" et al. work. 1422 1422 local output 1423 1423 for output in $(getAllOutputNames); do 1424 - if [ -e "${!output}" ]; then chmod -R u+w "${!output}"; fi 1424 + # for set*id bits see #300635 1425 + if [ -e "${!output}" ]; then chmod -R u+w,u-s,g-s "${!output}"; fi 1425 1426 done 1426 1427 1427 1428 runHook preFixup