Subject: libssh2_scp_send64 does not set mtime of file.

libssh2_scp_send64 does not set mtime of file.

From: Virgo Pärna <virgo.parna_at_mail.ee>
Date: Thu, 15 Jul 2021 09:49:46 -0000 (UTC)

        When using libssh2_scp_send64 to copy file to linux server and
passing timestamp as mtime parameter file mtime is not correctly set.
        I found following posting -
https://www.libssh2.org/mail/libssh2-devel-archive-2013-04/0038.shtml
and I modified my code to send NULL byte after sending file is completed
(before libssh2_channel_send_eof call). That worked for 5937 byte xml
file, but did not work for 655653 byte exe file.

-- 
Virgo Pärna 
virgo.parna_at_mail.ee
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2021-07-15