From d47afe4be749b32a569498ce340f28d2b49e2e65 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Thu, 7 Mar 2002 16:34:23 +0000 Subject: fix autologin sometimes activated without user intervention. --- perl-install/any.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install/any.pm') diff --git a/perl-install/any.pm b/perl-install/any.pm index 097d77a34..a9987ce7e 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -821,7 +821,7 @@ sub autologin { my @wm = (split (' ', `$cmd /usr/sbin/chksession -l 2>/dev/null`)); my @users = map { $_->{name} } @{$o->{users} || []}; - if (@wm && @users && !$o->{authentication}{NIS} && $o->{security} <= 2) { + if (@wm > 1 && @users && !$o->{authentication}{NIS} && $o->{security} <= 2) { add2hash_($o, { autologin => $users[0] }); $in->ask_from_( @@ -834,6 +834,8 @@ Do you want to use this feature?"), { label => _("Choose the window manager to run:"), val => \$o->{desktop}, list => \@wm } ] ) or delete $o->{autologin}; + } else { + delete $o->{autologin}; } } -- cgit v1.2.1