Use getcwd() to get the directory, which works even if one of the directory

components doesn't have read permission set.
This commit is contained in:
Dan Fandrich
2007-12-22 18:25:43 +00:00
parent d639ed1aaf
commit 9cd30c2012
3 changed files with 6 additions and 6 deletions

View File

@@ -59,6 +59,7 @@
use strict;
#use Time::HiRes qw( gettimeofday );
#use warnings;
use Cwd;
@INC=(@INC, $ENV{'srcdir'}, ".");
@@ -133,8 +134,7 @@ my $memdump="$LOGDIR/memdump";
# the path to the script that analyzes the memory debug output file:
my $memanalyze="$perl $srcdir/memanalyze.pl";
my $pwd; # current working directory
chomp($pwd = `pwd`);
my $pwd = getcwd(); # current working directory
my $start;
my $forkserver=0;