summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-09-18 21:07:57 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-09-18 21:07:57 +0000
commit817a42b9e37a78a176e59cf735894a14c54c76eb (patch)
tree6eb2d070f6b4a67b74ecff17912d71e48a8cdec7 /perl-install/any.pm
parent35f9e05ca5f302b498a6ae96ffa693eed65af0cb (diff)
downloaddrakx-817a42b9e37a78a176e59cf735894a14c54c76eb.tar
drakx-817a42b9e37a78a176e59cf735894a14c54c76eb.tar.gz
drakx-817a42b9e37a78a176e59cf735894a14c54c76eb.tar.bz2
drakx-817a42b9e37a78a176e59cf735894a14c54c76eb.tar.xz
drakx-817a42b9e37a78a176e59cf735894a14c54c76eb.zip
(write_passwd_user): fix setting "pw" field (for auto_installs)
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 3fcc19916..4db66dbcd 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -790,7 +790,7 @@ sub selectLanguage {
sub write_passwd_user {
my ($prefix, $u, $isMD5) = @_;
- local $u->{pw} = $u->{pw} || $u->{password} && &crypt($u->{password}, $isMD5);
+ $u->{pw} = &crypt($u->{password}, $isMD5) if $u->{password};
$u->{shell} ||= '/bin/bash';
substInFile {