commit:     0755fcf420d120b978cf6cf9364a26c6c0e67c0b
Author:     Sven Eden <sven.eden <AT> prydeworx <DOT> com>
AuthorDate: Sat Nov  7 14:25:16 2020 +0000
Commit:     Sven Eden <sven.eden <AT> gmx <DOT> de>
CommitDate: Sat Nov  7 14:25:16 2020 +0000
URL:        https://gitweb.gentoo.org/proj/ufed.git/commit/?id=0755fcf4

Remove -* from flag list as being very dangerous. (Bug 722856)

Signed-off-by: Sven Eden <sven.eden <AT> prydeworx.com>

 Portage.pm | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/Portage.pm b/Portage.pm
index 3b1791e..706af38 100644
--- a/Portage.pm
+++ b/Portage.pm
@@ -431,22 +431,9 @@ sub _determine_profiles
 # No parameters accepted
 sub _final_cleaning
 {
-       # The "disable all" flag is truncated to '*' by the parsing, but
-       # it has to read '-*'.
-       _add_temp("-*", "global");
-
-       $_use_temp->{'-*'}{global}{descr} = "{Never enable any flags other than 
those specified in make.conf}";
-       $_use_temp->{'-*'}{global}{conf} = 0; ## Can never be -1
-
-       # Set it from the truncated config:
-       if (defined($_use_temp->{'*'}{global})) {
-               $_use_temp->{'*'}{global}{conf} > -1
-                       and $_use_temp->{'-*'}{global}{conf} = 1;
-       }
-
        # The following use flags are dangerous or internal only
        # and must no be available using ufed:
-       defined($_use_temp->{"*"})         and delete($_use_temp->{"*"});
+       defined($_use_temp->{"*"})         and delete($_use_temp->{"*"}); ## 
USE="-*"
        defined($_use_temp->{"bootstrap"}) and 
delete($_use_temp->{"bootstrap"});
        defined($_use_temp->{"build"})     and delete($_use_temp->{"build"});
        defined($_use_temp->{"livecd"})    and delete($_use_temp->{"livecd"});

Reply via email to