wolfssh/examples/scpclient
John Safranek 5fe8c84f06 scp: guard the remote path in the client command
As with OpenSSH scp, the client sends the remote path to the server's
shell as given, with "--" before a path starting with "-". A control
character in the path is refused with WS_BAD_ARGUMENT, since it would
end or split the command.

- wolfSSH_SCP_from works on a copy of dst, not the caller's const string
- wolfscp.h: the remote shell expands the path; callers quote it
- scpclient: test only for WS_FATAL_ERROR in the retry loop
- tests: add MakeScpCmd cases, parsed back off Windows, and check
  SCP_from leaves dst unchanged

Issue: F-12624, F-13319, F-12546
2026-11-17 09:40:16 -06:00
..
include.am
…
scpclient.c scp: guard the remote path in the client command 2026-11-17 09:40:16 -06:00
scpclient.h
…