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 fb858967e..3ae0b8f05 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -753,7 +753,7 @@ sub autologin {
my ($prefix, $o, $in) = @_;
my $cmd = $prefix ? "chroot $prefix" : "";
- my @wm = (split (' ', `$cmd /usr/sbin/chksession -l`));
+ 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) {