]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: Use 'pathhelp' for paths conversions in secureserver.pl
authorKarlson2k <k2k@narod.ru>
Mon, 22 Feb 2016 07:06:53 +0000 (10:06 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 29 Apr 2016 21:43:18 +0000 (23:43 +0200)
Closes #675

tests/secureserver.pl

index c770fa5a75963b705fdabd1f3ae3275a06e1c974..3a7443c4037cdd421bd9fd13a5f8020866bdb50c 100755 (executable)
@@ -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);
 }
 
 #***************************************************************************