Changed permission check to see if you are either root or belong to the portage group...
authorfuzzyray <fuzzyray@gentoo.org>
Fri, 11 May 2007 05:40:14 +0000 (05:40 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Fri, 11 May 2007 05:40:14 +0000 (05:40 -0000)
svn path=/; revision=401

trunk/ChangeLog
trunk/src/eclean/eclean

index 40473ea224b38533f754eb1edb911b9e5db451e8..e5f00b8247bde16046f3aabe1913a1908ac095f6 100644 (file)
@@ -1,3 +1,7 @@
+2007-05-11: Paul Varner <fuzzyray@gentoo.org>
+       * eclean: Changed permission check to see if you are either root or
+       belong to the portage group (Bug #177385)
+
 2007-05-11: Paul Varner <fuzzyray@gentoo.org>
        * eclean: Updated eclean to not delete metadata.dtd by default (Bug
        #176951)
index 00be5e9bb4c447e76330afe051185d63b11ecc2a..1c9f8481ffd9cbfaf8687b1586a683051f7bab94 100644 (file)
@@ -785,8 +785,8 @@ def main():
                        sys.exit(1)
        else: exclude_dict={}
        # security check for non-pretend mode
-       if not myoptions['pretend'] and portage.secpass != 2:
-               eerror("Permission denied: you must be root.", \
+       if not myoptions['pretend'] and portage.secpass == 0:
+               eerror("Permission denied: you must be root or belong to the portage group.", \
                       myoptions['nocolor'])
                sys.exit(1)
        # execute action