aboutsummaryrefslogtreecommitdiff
path: root/tests/httpsserver.pl
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-12-22 18:25:43 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-12-22 18:25:43 +0000
commit9cd30c20120888ce08276ed00a11e858e44ff3f4 (patch)
tree88170f0714a42dcea4295ff5d98877def33884e9 /tests/httpsserver.pl
parentd639ed1aafe33905b800dbf0c858630352576a01 (diff)
Use getcwd() to get the directory, which works even if one of the directory
components doesn't have read permission set.
Diffstat (limited to 'tests/httpsserver.pl')
-rw-r--r--tests/httpsserver.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/httpsserver.pl b/tests/httpsserver.pl
index 3cc6c1ea9..95ba10317 100644
--- a/tests/httpsserver.pl
+++ b/tests/httpsserver.pl
@@ -6,6 +6,7 @@
# It is actually just a layer that runs stunnel properly.
use strict;
+use Cwd;
my $stunnel = "stunnel";
@@ -21,8 +22,7 @@ my $verbose=0; # set to 1 for debugging
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;