Index: ebuild.sh =================================================================== RCS file: /home/cvsroot/gentoo-src/portage/bin/ebuild.sh,v retrieving revision 1.134 diff -u -b -B -r1.134 ebuild.sh --- ebuild.sh 16 Jul 2003 12:59:18 -0000 1.134 +++ ebuild.sh 19 Jul 2003 10:02:48 -0000 @@ -772,7 +772,21 @@ done if [[ $UNSAFE > 0 ]]; then - die "There are unsafe files. Portage will not install them." + die "There are ${UNSAFE} unsafe files. Portage will not install them." + fi + + # Smart FileSystem Permissions + if [ "`has sfperms $FEATURES`" != "" ]; then + for i in $(find ${D}/ -type f -perm -4000); do + ebegin ">>> SetUID: [chmod go-r] $i " + chmod go-r $i + eend $? + done + for i in $(find ${D}/ -type f -perm -2000); do + ebegin ">>> SetGID: [chmod o-r] $i " + chmod o-r $i + eend $? + done fi find ${D}/ -user portage -print0 | $XARGS -0 -n100 chown root