diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-01-11 11:51:44 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-01-11 11:51:44 +0000 |
commit | d25032e126212e8d96144e2439dc1d0880a0e69b (patch) | |
tree | ebcd267e1c14c8a3e00f35154b2ff8ce34d63f1f | |
parent | 1c04736962769df73d14f0247f53e765f67b2c38 (diff) | |
download | drakx-d25032e126212e8d96144e2439dc1d0880a0e69b.tar drakx-d25032e126212e8d96144e2439dc1d0880a0e69b.tar.gz drakx-d25032e126212e8d96144e2439dc1d0880a0e69b.tar.bz2 drakx-d25032e126212e8d96144e2439dc1d0880a0e69b.tar.xz drakx-d25032e126212e8d96144e2439dc1d0880a0e69b.zip |
(g_auto_install): deep copy of $o->{users} because we're modifying it
-rw-r--r-- | perl-install/install_any.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 9b018a478..64865e235 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -541,6 +541,9 @@ sub g_auto_install(;$) { local $o->{partitioning}{auto_allocate} = 1; local $o->{autoExitInstall} = 1; + #- deep copy because we're modifying it below + $o->{users} = [ @{$o->{users} || []} ]; + $_ = { %{$_ || {}} }, delete @$_{qw(oldu oldg password password2)} foreach $o->{superuser}, @{$o->{users} || []}; output($f, |