summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-09-21 11:02:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-09-21 11:02:49 +0000
commit364b3b4370c99de6c93082d4ccc3be3b6ca3e514 (patch)
treea558ef245b5dceecc0a8752c6f7a1b7b8763a3e9 /perl-install
parentcb20cc84be366a008e323bf1c8a3a190779e311a (diff)
downloaddrakx-364b3b4370c99de6c93082d4ccc3be3b6ca3e514.tar
drakx-364b3b4370c99de6c93082d4ccc3be3b6ca3e514.tar.gz
drakx-364b3b4370c99de6c93082d4ccc3be3b6ca3e514.tar.bz2
drakx-364b3b4370c99de6c93082d4ccc3be3b6ca3e514.tar.xz
drakx-364b3b4370c99de6c93082d4ccc3be3b6ca3e514.zip
Ensure $o->{superuser}{name} is temporary
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install_steps.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index 1f4cbf595..e5b4553ee 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -642,8 +642,9 @@ sub setRootPassword {
my ($o) = @_;
my $p = $o->{prefix};
my $u = $o->{superuser} ||= {};
- local $o->{superuser}{name} = 'root';
+ $o->{superuser}{name} = 'root';
any::write_passwd_user($o->{prefix}, $o->{superuser}, $o->{authentication}{md5});
+ delete $o->{superuser}{name};
}
#------------------------------------------------------------------------------