From 364b3b4370c99de6c93082d4ccc3be3b6ca3e514 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 21 Sep 2001 11:02:49 +0000 Subject: Ensure $o->{superuser}{name} is temporary --- perl-install/install_steps.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/install_steps.pm') 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}; } #------------------------------------------------------------------------------ -- cgit v1.2.1