diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-11-30 10:52:06 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-11-30 10:52:06 +0000 |
commit | b6d2621f3a4a327d23d5a16247df839fca62dfec (patch) | |
tree | 6835062ef13225ed26746272eb185c5d908df920 /perl-install/any.pm | |
parent | 601870c80fa2c1ab2ccfdd5ae9e456b64df8fb6b (diff) | |
download | drakx-b6d2621f3a4a327d23d5a16247df839fca62dfec.tar drakx-b6d2621f3a4a327d23d5a16247df839fca62dfec.tar.gz drakx-b6d2621f3a4a327d23d5a16247df839fca62dfec.tar.bz2 drakx-b6d2621f3a4a327d23d5a16247df839fca62dfec.tar.xz drakx-b6d2621f3a4a327d23d5a16247df839fca62dfec.zip |
create any::set_root_passwd() and use it
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r-- | perl-install/any.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm index e37a69bf3..b1dcbb78c 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -831,6 +831,13 @@ sub user_crypted_passwd { $u->{password} ? &crypt($u->{password}, $isMD5) : $u->{pw} || ''; } +sub set_root_passwd { + my ($superuser, $authentication) = @_; + $superuser->{name} = 'root'; + write_passwd_user($superuser, $authentication->{md5}); + delete $superuser->{name}; +} + sub write_passwd_user { my ($u, $isMD5) = @_; |