curl-curl/tests/data/test2007
Daniel Stenberg 53a3b2114a
libssh2: fix error handling on quote errors
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
2026-03-11 09:44:21 +01:00

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>