mirror of
https://github.com/curl/curl.git
synced 2026-04-12 00:11:42 +08:00
Previously it lacked the actual return. libssh.c uses the same function
name.
Verified by test 2007.
Reported-by: m777m0 on hackerone
Follow-up to 578706adde
Closes #20883
33 lines
548 B
XML
33 lines
548 B
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
SFTP
|
|
--quote
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
sftp
|
|
</server>
|
|
<name>
|
|
SFTP quote rmdir command with trailing junk
|
|
</name>
|
|
<command>
|
|
--hostpubmd5 %SSHSRVMD5 --key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%SFTP_PWD/%LOGDIR/file%TESTNUMBER.txt -Q "mkdir /tmp/test trailing_garbage"
|
|
</command>
|
|
</client>
|
|
|
|
<verify>
|
|
<errorcode>
|
|
21
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|