diff options
author | Karlson2k <k2k@narod.ru> | 2016-02-22 10:06:53 +0300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-04-29 23:43:18 +0200 |
commit | 50129e6a964612e682ba0d240b232617bf617be3 (patch) | |
tree | 0929ff8f9d278d91e6b4ef36d53c0d7336f9dc87 /tests | |
parent | 4c5d5e5e55971ce0364218e88a27a5c6f686d163 (diff) |
tests: Use 'pathhelp' for paths conversions in secureserver.pl
Closes #675
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/secureserver.pl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/secureserver.pl b/tests/secureserver.pl index c770fa5a7..3a7443c40 100755 --- a/tests/secureserver.pl +++ b/tests/secureserver.pl @@ -40,6 +40,8 @@ use serverhelp qw( server_logfilename ); +use pathhelp; + my $stunnel = "stunnel"; my $verbose=0; # set to 1 for debugging @@ -229,9 +231,9 @@ if($stunnel_version < 310) { if($stunnel =~ /tstunnel(\.exe)?"?$/) { $tstunnel_windows = 1; - # replace Cygwin and MinGW drives within paths - $capath =~ s/^(\/cygdrive)?\/(\w)\//$2\:\//; - $certfile =~ s/^(\/cygdrive)?\/(\w)\//$2\:\//; + # convert Cygwin/MinGW paths to Win32 format + $capath = pathhelp::sys_native_abs_path($capath); + $certfile = pathhelp::sys_native_abs_path($certfile); } #*************************************************************************** |