Tgz file is not copying properly

Dan Fandrich dan at
Fri Oct 28 22:18:38 CEST 2022

On Fri, Oct 28, 2022 at 12:54:55PM +0530, Gautham Kumar via libssh2-devel wrote:
> We have a device using curl with the libssh2 to copy some files from the device
> to the server. When I try to use the curl with SCP option the file gets
> corrupted. This issue happens only with SCP on curl.

Is it a curl bug then? Does it happen with (an appropriately modified)
libssh2/example/scp.c ?

> -bash-4.2$ tar -tf bundle_file.tgz
> gzip: stdin: invalid compressed data--format violated
> tar: Unexpected EOF in archive
> tar: Error is not recoverable: exiting now

How do the bytes of the bad file differ from the good file?


More information about the libssh2-devel mailing list