Author: Jason Stubbs

The permissions modifying code of ebuild.sh sets files to have group 
wheel on BSD and Darwin and group root on other systems. The 
intention is that the group have gid 0 on all systems. This code 
removes the if block and uses the numerical identifier.

-- 
Jason Stubbs
diff -uNr portage-stable/bin/ebuild.sh portage-fixed/bin/ebuild.sh
--- portage-stable/bin/ebuild.sh	2005-05-15 19:20:58.000000000 +0900
+++ portage-fixed/bin/ebuild.sh	2005-07-18 11:20:55.452602608 +0900
@@ -1087,11 +1087,7 @@
 	find "${D}/" -group portage | while read file; do
 		count=$(( $count + 1 ))
 		s=$(stat_perms "$file")
-		if [ "$USERLAND" == "BSD" ] || [ "$USERLAND" == "Darwin" ];then
-			chgrp wheel "$file"
-		else
-			chgrp root "$file"
-		fi
+		chgrp 0 "$file"
 		chmod "$s" "$file"
 	done
 	if (( $count > 0 )); then

Attachment: pgpJ8QY0pf7AY.pgp
Description: PGP signature

Reply via email to