]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: fix sshd IdentityFile path for MinGW/Cygwin
authorDan Fandrich <dan@coneharvesters.com>
Sat, 6 Jul 2024 08:16:06 +0000 (01:16 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Sun, 7 Jul 2024 03:32:11 +0000 (20:32 -0700)
This was missed during some refactoring more than a year ago and is
causing a warning "Use of uninitialized value $path in pattern match".

Follow-up to 70d2fca2

Ref: #10818
Closes #14113

tests/sshserver.pl

index cba8a88ef0424a780c603ace226d1abf724a571d..d7835d313c242b515f23815104026f7657bdf0f8 100755 (executable)
@@ -847,7 +847,7 @@ if ($sshdid =~ /OpenSSH-Windows/) {
 }
 elsif (pathhelp::os_is_win()) {
     # Ensure to use MinGW/Cygwin paths
-    $identity_config = pathhelp::build_sys_abs_path($identity_config);
+    $identity_config = pathhelp::build_sys_abs_path($identity);
     $knownhosts_config = pathhelp::build_sys_abs_path($knownhosts_config);
 }
 else {