From 3261f6eb5bb39dd78dfa43ab69b11bfe7d93a4e4 Mon Sep 17 00:00:00 2001 From: "cltbld%netscape.com" Date: Fri, 21 Jun 2002 19:14:13 +0000 Subject: [PATCH] Explicitly set cwd to home directory after setting /u/cltbld, apparently MacOSX/Darwin needs this. -mcafee --- tools/tinderbox/build-seamonkey-util.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/tinderbox/build-seamonkey-util.pl b/tools/tinderbox/build-seamonkey-util.pl index f5e1b30613e..869f9970be3 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 (); -$::UtilsVersion = '$Revision: 1.169 $ '; +$::UtilsVersion = '$Revision: 1.170 $ '; package TinderUtils; @@ -1578,7 +1578,13 @@ sub fork_and_log { unless ($pid) { # child $ENV{HOME} = $home if ($Settings::OS ne "BeOS"); + + # Explicitly set cwd to home dir. + chdir $home or die "chdir($home): $!\n"; + + # Now cd to dir where binary is.. chdir $dir or die "chdir($dir): $!\n"; + open STDOUT, ">$logfile"; open STDERR, ">&STDOUT"; select STDOUT; $| = 1; # make STDOUT unbuffered