From 9f7f26c3e71c426a751295de6d136ad61ca66472 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Thu, 4 Mar 2010 13:06:30 +0000 Subject: [PATCH] Don't set PATH when running external shell command. --- techtalk-pse.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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. -- 1.8.3.1