]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test3021: disable all msys2 path transformation
authorJay Satiro <raysatiro@yahoo.com>
Tue, 25 Jan 2022 03:53:29 +0000 (22:53 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 28 Jan 2022 07:40:16 +0000 (02:40 -0500)
- Disable all MSYS2 path transformation in test3021 and test3022.

Prior to this change path transformation in those tests was disabled
only for arguments that start with forward slashes. However arguments
that are in base64 contain forward slashes at any position and caused
unwanted translations.

== Info: Denied establishing ssh session: mismatch sha256 fingerprint.
Remote +/EYG2YDzDGm6yiwepEMSuExgRRMoTi8Di1UN3kixZw= is not equal to
+C:/msys64/EYG2YDzDGm6yiwepEMSuExgRRMoTi8Di1UN3kixZw

In the above example an argument containing a base64 sha256 fingerprint
was passed to curl after MSYS2 translated +/ into +C:/msys64/, and then
the fingerprint didn't match what was expected.

Ref: https://www.msys2.org/wiki/Porting/

Fixes https://github.com/curl/curl/issues/8084
Closes https://github.com/curl/curl/pull/8325

tests/data/test3021
tests/data/test3022

index 1b23ff048268256430c9563d32f93e323a92280e..775dd91f827ac24f55560f2575c6ba3445c7d0f3 100644 (file)
@@ -33,7 +33,7 @@ SFTP correct sha256 host key
 <setenv>
 # Needed for MSYS2 to not treat the argument as a POSIX path list
 # that has to be converted to Windows paths
-MSYS2_ARG_CONV_EXCL=/
+MSYS2_ARG_CONV_EXCL=*
 </setenv>
 <file name="log/file%TESTNUMBER.txt">
 test
index 3e117701ad97a5a3f7646dea21d22c5bdad7b99a..a9dbcb0f2b71ff34a0850231ae5020c5961cf962 100644 (file)
@@ -33,7 +33,7 @@ SCP correct sha256 host key
 <setenv>
 # Needed for MSYS2 to not treat the argument as a POSIX path list
 # that has to be converted to Windows paths
-MSYS2_ARG_CONV_EXCL=/
+MSYS2_ARG_CONV_EXCL=*
 </setenv>
 <file name="log/file%TESTNUMBER.txt">
 test