summaryrefslogtreecommitdiffstats
path: root/perl-install/run_program.pm
diff options
context:
space:
mode:
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 042f4883e..c836efd72 100644
--- a/perl-install/run_program.pm
+++ b/perl-install/run_program.pm
@@ -63,7 +63,7 @@ sub raw {
my $stderr = $stderr_raw && (ref($stderr_raw) ? $tmpdir->() . "/.drakx-stderr.$$" : "$root$stderr_raw");
#- checking if binary exist to avoid cloberring stdout file
- my ($rname) = $real_name =~ /(.*)[\s\|]/;
+ my ($rname) = $real_name =~ /(.*?)[\s\|]/;
if (! ($rname =~ m!^/!
? -x "$root$rname" || $root && -l "$root$rname" #- handle non-relative symlink which can be broken when non-rooted
: whereis_binary($rname, $root))) {