diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2020-04-05 18:46:42 +0200 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2020-04-10 21:03:24 +0200 |
commit | 8c92f7e82fcdd2fb17c90ecdfea6134d7a8a8185 (patch) | |
tree | 4e6996fa9071f576ddc5bad3edc4d89974d9aa31 | |
parent | 3e36af2cfabfd5de4f1daebdba9a68194b6344e9 (diff) | |
download | curl-8c92f7e82fcdd2fb17c90ecdfea6134d7a8a8185.tar.gz |
sshserver.pl: use cached Win32 environment check variable
-rw-r--r-- | tests/sshserver.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sshserver.pl b/tests/sshserver.pl index 59ea0ae1e..084b4a83c 100644 --- a/tests/sshserver.pl +++ b/tests/sshserver.pl @@ -405,7 +405,7 @@ my $hstprvkeyf_config = abs_path("$path/$hstprvkeyf"); my $pidfile_config = $pidfile; my $sftpsrv_config = $sftpsrv; -if ($^O eq 'MSWin32' || $^O eq 'cygwin' || $^O eq 'msys') { +if (pathhelp::os_is_win()) { # Ensure to use MinGW/Cygwin paths $clipubkeyf_config = pathhelp::build_sys_abs_path($clipubkeyf_config); $hstprvkeyf_config = pathhelp::build_sys_abs_path($hstprvkeyf_config); @@ -797,7 +797,7 @@ if((! -e $knownhosts) || (! -s $knownhosts)) { my $identity_config = abs_path("$path/$identity"); my $knownhosts_config = abs_path("$path/$knownhosts"); -if ($^O eq 'MSWin32' || $^O eq 'cygwin' || $^O eq 'msys') { +if (pathhelp::os_is_win()) { # Ensure to use MinGW/Cygwin paths $identity_config = pathhelp::build_sys_abs_path($identity_config); $knownhosts_config = pathhelp::build_sys_abs_path($knownhosts_config); |