summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-26 18:22:35 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-26 18:22:35 +0000
commitd88f662079e5eef78dcd25cf6a18771567af02e8 (patch)
tree3bec3af8789c05fa0a42f0b26b5ebee4c75f81b4 /perl-install/any.pm
parent892bee6477c534b72ea8fbad40385fe6b2147069 (diff)
downloaddrakx-d88f662079e5eef78dcd25cf6a18771567af02e8.tar
drakx-d88f662079e5eef78dcd25cf6a18771567af02e8.tar.gz
drakx-d88f662079e5eef78dcd25cf6a18771567af02e8.tar.bz2
drakx-d88f662079e5eef78dcd25cf6a18771567af02e8.tar.xz
drakx-d88f662079e5eef78dcd25cf6a18771567af02e8.zip
use run_program::rooted_get_stdout instead of `chroot $prefix ...`
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 9d7da9d37..47de00273 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -820,8 +820,7 @@ sub ask_users {
sub autologin {
my ($prefix, $o, $in) = @_;
- my $cmd = $prefix ? "chroot $prefix" : "";
- my @wm = (split (' ', `$cmd /usr/sbin/chksession -l 2>/dev/null`));
+ my @wm = split(' ', run_program::rooted_get_stdout($prefix, '/usr/sbin/chksession', '-l'));
my @users = map { $_->{name} } @{$o->{users} || []};
if (@wm > 1 && @users && !$o->{authentication}{NIS} && $o->{security} <= 2) {