diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2007-05-11 05:40:14 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2007-05-11 05:40:14 +0000 |
| commit | c962b0015ec673e11f76940b24c02fad74b266fb (patch) | |
| tree | 4bbc17ab98f190cef82a1424a2932ac3c6953f6d /trunk | |
| parent | 17a76b27b9e4f46b6bc5490a201a1e875bd66437 (diff) | |
| download | gentoolkit-c962b0015ec673e11f76940b24c02fad74b266fb.tar.gz | |
Changed permission check to see if you are either root or belong to the portage group (Bug #177385)
svn path=/; revision=401
Diffstat (limited to 'trunk')
| -rw-r--r-- | trunk/ChangeLog | 4 | ||||
| -rw-r--r-- | trunk/src/eclean/eclean | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 40473ea..e5f00b8 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,4 +1,8 @@ 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) diff --git a/trunk/src/eclean/eclean b/trunk/src/eclean/eclean index 00be5e9..1c9f848 100644 --- a/trunk/src/eclean/eclean +++ b/trunk/src/eclean/eclean @@ -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 |
