summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
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 {