Bug#232201: ssh: scp returns 0 if file cannot be copied.
retitle 232201 ssh: scp loses exit status for remote-to-remote copy
thanks
On Wed, Feb 11, 2004 at 11:08:06AM +0100, Jaroslaw Tabor wrote:
> Package: ssh
> Version: 1:3.6.1p2-11
> Severity: normal
>
> scp called to copy file between two remote hosts exits with return code
> 0 if connection to second host fails.
> Example:
>
> scp localhost:file remotehost:file;echo $?
> ssh: connect to host remotehost port 22: No route to host
> 0
This is specific to remote-to-remote copying, so I'm retitling the bug.
I think it's been fixed upstream.
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: