diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-09-25 10:59:35 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-09-25 10:59:35 +0000 |
commit | 02dd7c2eb0ace3044280e9297acd54a97dbc9ead (patch) | |
tree | 212588ba924387b1f6b6614d7f4531dac4f3a641 /perl-install/any.pm | |
parent | b4f34cab421f370225f565040128394d6b59da88 (diff) | |
download | drakx-02dd7c2eb0ace3044280e9297acd54a97dbc9ead.tar drakx-02dd7c2eb0ace3044280e9297acd54a97dbc9ead.tar.gz drakx-02dd7c2eb0ace3044280e9297acd54a97dbc9ead.tar.bz2 drakx-02dd7c2eb0ace3044280e9297acd54a97dbc9ead.tar.xz drakx-02dd7c2eb0ace3044280e9297acd54a97dbc9ead.zip |
do not allow to create user "root" (thanks to Eric Fernandez)
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r-- | perl-install/any.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm index f4de2303a..e25d047d9 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -768,7 +768,7 @@ sub ask_users { $u->{name} or $in->ask_warn('', _("Please give a user name")), return (1,0); $u->{name} =~ /^[a-z0-9_-]+$/ or $in->ask_warn('', _("The user name must contain only lower cased letters, numbers, `-' and `_'")), return (1,0); length($u->{name}) <= 32 or $in->ask_warn('', _("The user name is too long")), return (1,0); - member($u->{name}, map { $_->{name} } @$users) and $in->ask_warn('', _("This user name is already added")), return (1,0); + member($u->{name}, 'root', map { $_->{name} } @$users) and $in->ask_warn('', _("This user name is already added")), return (1,0); return 0; }; my $ret = $in->ask_from_( |