From a4c1245e01e1e66bfb9b10e540ad991c44b44d0f Mon Sep 17 00:00:00 2001 From: "bryner%netscape.com" Date: Sat, 17 May 2003 08:34:44 +0000 Subject: [PATCH] Use the 'exec PROGRAM LIST' form of exec() so that running a command with no arguments doesn't get split up into words. Fixes executing a command with no arguments that has spaces in the path. --- tools/tinderbox/build-seamonkey-util.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tinderbox/build-seamonkey-util.pl b/tools/tinderbox/build-seamonkey-util.pl index 5626c46d7714..7f811c18946f 100644 --- a/tools/tinderbox/build-seamonkey-util.pl +++ b/tools/tinderbox/build-seamonkey-util.pl @@ -23,7 +23,7 @@ use Config; # for $Config{sig_name} and $Config{sig_num} use File::Find (); use File::Copy; -$::UtilsVersion = '$Revision: 1.239 $ '; +$::UtilsVersion = '$Revision: 1.240 $ '; package TinderUtils; @@ -1203,7 +1203,7 @@ sub fork_and_log { open STDERR, ">&STDOUT"; select STDOUT; $| = 1; # make STDOUT unbuffered select STDERR; $| = 1; # make STDERR unbuffered - exec @$args; + exec { $args->[0] } @$args; die "Could not exec()"; } return $pid;