git.annexia.org
/
techtalk-pse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b089a43
)
Don't set PATH when running external shell command.
author
Richard Jones
<rjones@redhat.com>
Thu, 4 Mar 2010 13:06:30 +0000
(13:06 +0000)
committer
Richard Jones
<rjones@redhat.com>
Thu, 4 Mar 2010 13:06:30 +0000
(13:06 +0000)
techtalk-pse.pl
patch
|
blob
|
history
diff --git
a/techtalk-pse.pl
b/techtalk-pse.pl
index
ae3737b
..
453bf09
100755
(executable)
--- 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.