summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps_interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-09-06 19:19:33 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-09-06 19:19:33 +0000
commit43056d09d042ed946f2d4c6897c4af5b0cc9227f (patch)
tree42a53438b06518a4eef497b45af2fc1ea0d63fd9 /perl-install/install_steps_interactive.pm
parent8ba1a1156e59eef70ea530272b4446f3ba445d73 (diff)
downloaddrakx-backup-do-not-use-43056d09d042ed946f2d4c6897c4af5b0cc9227f.tar
drakx-backup-do-not-use-43056d09d042ed946f2d4c6897c4af5b0cc9227f.tar.gz
drakx-backup-do-not-use-43056d09d042ed946f2d4c6897c4af5b0cc9227f.tar.bz2
drakx-backup-do-not-use-43056d09d042ed946f2d4c6897c4af5b0cc9227f.tar.xz
drakx-backup-do-not-use-43056d09d042ed946f2d4c6897c4af5b0cc9227f.zip
no_comment
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r--perl-install/install_steps_interactive.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index b3008775a..0d8425956 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -427,8 +427,7 @@ sub addUser($) {
{val => \$u{shell}, list => \@shells, not_edit => !$::expert},
],
focus_out => sub {
- print "int $_[0], $u{name}, $u{realname}, $u{shell}\n";
- ($u{name}) = $u{realname} =~ /\U(\S+)/ if $_[0] eq 0;
+ $u->{name} = lc first($u->{realname} =~ /(\w+)/) if $_[0] eq 0;
},
complete => sub {
$u{password} eq $u{password2} or $o->ask_warn('', [ _("You must enter the same password"), _("Please try again") ]), return (1,2);