Subject: Re: libssh2_scp_send64: incorrect/unspecific error message

Re: libssh2_scp_send64: incorrect/unspecific error message

From: Uli Zappe <uli_at_ritual.org>
Date: Fri, 10 Sep 2010 01:14:37 +0200

Am 09.09.2010 um 19:11 schrieb Daniel Stenberg:

> Have you checked the code and seen if that data is passed on as supposed?

I've taken a look now, and I can't find anything in the code. Running libssh2 with debugging enabled (LIBSSH2_TRACE_SCP) shows this (I've set mtime and atime to the fixed value of 1111111111 in my code for easy recognition in the log):

[libssh2] 0.911664 SCP: Opening channel for SCP send
[libssh2] 0.956339 SCP: Sent T1111111111 0 1111111111 0
[libssh2] 0.957310 SCP: Sent C0644 257690 Test.txt

So according to the debug log, the times are sent; however, while Test.txt is copied just fine, it has the current time as modification date on the remote machine. If I copy Test.txt with scp (from Mac OS X/OpenSSH) to the same remote machine, the times are set correctly, so it's not an error at the remote end.

So, the only explanation seems to be that while "T1111111111 0 1111111111 0" is indeed sent, it's somehow "misformatted" so that it doesn't achieve the intended effect. Unfortunately, I dont' know anything about the ssh/scp protocol, so I cannot judge that.

            Bye
                    Uli
________________________________________________________

  Uli Zappe, Solmsstraße 5, D-65189 Wiesbaden, Germany
  http://www.ritual.org
  Fon: +49-700-ULIZAPPE
  Fax: +49-700-ZAPPEFAX
________________________________________________________

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-09-10