components doesn't have read permission set.
# It is actually just a layer that runs stunnel properly.
use strict;
+use Cwd;
my $stunnel = "stunnel";
my $port = 8991; # just our default, weird enough
my $target_port = 8999; # default test http-server port
-my $path = `pwd`;
-chomp $path;
+my $path = getcwd();
my $srcdir=$path;
use strict;
#use Time::HiRes qw( gettimeofday );
#use warnings;
+use Cwd;
@INC=(@INC, $ENV{'srcdir'}, ".");
# 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;
use strict;
use File::Spec;
+use Cwd;
my $verbose=1; # set to 1 for debugging
my $showfiles=0;
my $conffile_ssh="curl_ssh_config"; # ssh configuration data
my $knownhostsfile="curl_client_knownhosts"; # ssh knownhosts file
-my $path = `pwd`;
-chomp $path;
+my $path = getcwd();
my $exeext;
if ($^O eq 'MSWin32' || $^O eq 'cygwin' || $^O eq 'msys' || $^O eq 'dos' || $^O eq 'os2') {