summaryrefslogtreecommitdiffstats
path: root/perl-install/run_program.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-08-12 12:35:37 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-08-12 12:35:37 +0000
commit107b1cbeace77c78d4885c138ca57d373a125bdf (patch)
tree0113b4014c40039b246c3b876d0e2de93d7087cc /perl-install/run_program.pm
parent665d9ad8aa8b8a71198ef8b6cae00e94b9244391 (diff)
downloaddrakx-107b1cbeace77c78d4885c138ca57d373a125bdf.tar
drakx-107b1cbeace77c78d4885c138ca57d373a125bdf.tar.gz
drakx-107b1cbeace77c78d4885c138ca57d373a125bdf.tar.bz2
drakx-107b1cbeace77c78d4885c138ca57d373a125bdf.tar.xz
drakx-107b1cbeace77c78d4885c138ca57d373a125bdf.zip
no_comment
Diffstat (limited to 'perl-install/run_program.pm')
-rw-r--r--perl-install/run_program.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/run_program.pm b/perl-install/run_program.pm
index 2973a57cc..54887f882 100644
--- a/perl-install/run_program.pm
+++ b/perl-install/run_program.pm
@@ -25,6 +25,9 @@ sub rooted($$@) {
$root and chroot $root;
chdir "/";
- exec $name, @args or log::l("exec of $name failed: $!"), exec('false') || exit(1);
+ unless (exec $name, @args) {
+ log::l("exec of $name failed: $!");
+ exec('false') or exit(1);
+ }
}
}