[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix for ssh_scp_write issue

On Thursday 04 August 2011 21:20:06 you wrote:
> Hi,


> I've been trying to use the scp push functionality in libssh 0.5.0 lately,
> and while doing that I've found issues with ssh_scp_write in recursive
> mode.
> A fix for the bug is attached to this mail, and here is a closer description
> of the problem: There where two issues with ssh_scp_write:
> 1) It did not write a status message after the last write and OpenSSH
>    would then give up after the write finished.
> 2) OpenSSH would sometimes write a status message, after near ends write.
>    If scp_write didn't handle it, and subsequent status message. The remote
>    window would shrink to zero and ssh_channel_write would start returning
> 0.
> I know i should have used sftp instead, but the embedded hardware I'm
> talking to doesn't have that enabled, so I'm stuck with scp.

Thanks for the fix. I've pushed it to master and v0.5.

I will release 0.5.1 as soon as possible.

	-- andreas

Andreas Schneider                   GPG-ID: F33E3FC6
www.cryptomilk.org                asn@xxxxxxxxxxxxxx

Fix for ssh_scp_write issueEinar Fløystad Dørum <einarfd@xxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org