summaryrefslogtreecommitdiffstats
path: root/perl-install/run_program.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-05-24 06:24:31 +0000
committerOlivier Blin <oblin@mandriva.org>2005-05-24 06:24:31 +0000
commit108474877221954a34b714f2f3c4c539a08d03ec (patch)
tree23d23dfd8044aa0d84ec7fa90b65f0b8578f2e5e /perl-install/run_program.pm
parent99f66758167609644786cb299f74fa4dea9b9881 (diff)
downloaddrakx-backup-do-not-use-108474877221954a34b714f2f3c4c539a08d03ec.tar
drakx-backup-do-not-use-108474877221954a34b714f2f3c4c539a08d03ec.tar.gz
drakx-backup-do-not-use-108474877221954a34b714f2f3c4c539a08d03ec.tar.bz2
drakx-backup-do-not-use-108474877221954a34b714f2f3c4c539a08d03ec.tar.xz
drakx-backup-do-not-use-108474877221954a34b714f2f3c4c539a08d03ec.zip
fix return code when chroot can't be done
Diffstat (limited to 'perl-install/run_program.pm')
-rw-r--r--perl-install/run_program.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/run_program.pm b/perl-install/run_program.pm
index 813c8de3e..26b73a2d0 100644
--- a/perl-install/run_program.pm
+++ b/perl-install/run_program.pm
@@ -50,7 +50,7 @@ sub raw {
my $args = $options->{sensitive_arguments} ? '<hidden arguments>' : join(' ', @args);
log::explanations("running: $real_name $args" . ($root ? " with root $root" : ""));
- return 1 if $root && $<;
+ return if $root && $<;
$root ? ($root .= '/') : ($root = '');