From: Richard Jones Date: Thu, 4 Mar 2010 13:06:30 +0000 (+0000) Subject: Don't set PATH when running external shell command. X-Git-Tag: 1.0.0~17 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=9f7f26c3e71c426a751295de6d136ad61ca66472;p=techtalk-pse.git Don't set PATH when running external shell command. --- diff --git a/techtalk-pse.pl b/techtalk-pse.pl index ae3737b..453bf09 100755 --- a/techtalk-pse.pl +++ b/techtalk-pse.pl @@ -326,8 +326,7 @@ sub show_slide unless ($pid) { # Child. POSIX::setsid (); - $ENV{PATH} = ".:$ENV{PATH}"; - exec ($slide->{name}); + exec ("./".$slide->{name}); die "failed to execute command: ", $slide->{name}, ": $!"; } # Parent returns.