mirror of
https://github.com/curl/curl.git
synced 2025-04-18 16:30:45 +08:00
To allow configuring paths styles for SCP and SFTP servers separately. - make `scp://` URLs use `%SCP_PWD` (was: `%SSH_PWD`). - make `%SCP_PWD` equal to `%POSIX_PWD`. To fix test 3022 with OpenSSH-Windows 9.8.0 server. The fix works on a local machine. Remains broken in CI. Before this patch, it was equal to `%FILE_PWD` when using OpenSSH-Windows, otherwise it was `%POSIX_PWD`. Notice that no matter what path-style we pass, test 3022 was and still is broken with earlier OpenSSH-Windows versions. (as tested with 9.5.0, 9.5.0-beta20240403, 8.0.0.1) - rename rest of `%SSH_PWD` uses to `%SFTP_PWD`. - drop unused `%POSIX_PWD`. - GHA/windows: test with OpenSSH-Windows server again. In the LibreSSL MSVC job. This job is short enough to fit the slow install of the built-in OpenSSH-Windows tools, if needed. Follow-up to 1abb087a9c8f1e613b0b38b7afeffb61c18c2fed #5298 Ref: #16803 Closes #17041
45 lines
997 B
Plaintext
45 lines
997 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
SFTP
|
|
pre-quote
|
|
directory
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
<datacheck>
|
|
d????????? N U U N ??? N NN:NN asubdir
|
|
-r-??????? 1 U U 37 Jan 1 2000 plainfile.txt
|
|
-r-??????? 1 U U 47 Dec 31 2000 rofile.txt
|
|
</datacheck>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
sftp
|
|
</server>
|
|
<precheck>
|
|
%PERL %SRCDIR/libtest/test613.pl prepare %PWD/%LOGDIR/test%TESTNUMBER.dir
|
|
</precheck>
|
|
<name>
|
|
SFTP pre-quote chmod
|
|
</name>
|
|
<command>
|
|
--key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: -Q "chmod 444 %SFTP_PWD/%LOGDIR/test%TESTNUMBER.dir/plainfile.txt" sftp://%HOSTIP:%SSHPORT%SFTP_PWD/%LOGDIR/test%TESTNUMBER.dir/ --insecure
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<postcheck>
|
|
%PERL %SRCDIR/libtest/test613.pl postprocess %PWD/%LOGDIR/test%TESTNUMBER.dir %PWD/%LOGDIR/curl%TESTNUMBER.out
|
|
</postcheck>
|
|
</verify>
|
|
</testcase>
|