public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] CLEANUP: Replace separation of root and wheel based on USERLAND with gid 0
@ 2005-07-18  3:27 Jason Stubbs
  0 siblings, 0 replies; only message in thread
From: Jason Stubbs @ 2005-07-18  3:27 UTC (permalink / raw
  To: gentoo-portage-dev


[-- Attachment #1.1: Type: text/plain, Size: 303 bytes --]

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

[-- Attachment #1.2: unify_wheel_root.patch --]
[-- Type: text/x-diff, Size: 537 bytes --]

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 #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-18  3:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-18  3:27 [gentoo-portage-dev] CLEANUP: Replace separation of root and wheel based on USERLAND with gid 0 Jason Stubbs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox