Subject: libssh2_scp_send64: incorrect/unspecific error message

libssh2_scp_send64: incorrect/unspecific error message

From: Uli Zappe <uli_at_ritual.org>
Date: Thu, 9 Sep 2010 04:05:42 +0200

Hi,

when you call libssh2_scp_send64 (or libssh2_scp_send, for that matter) with a destination path that does not exist (i.e. the directory path component does not exist), the error you get is

   failed waiting for ACK

While this is not strictly wrong, it's rather unspecific and not very helpful for an end user.

OpenSSH's scp returns

   No such file or directory

in this situation (same sshd on the other end) which is what you would expect.

Is this a bug, a missing feature or intended behavior for libssh2_scp_send64?

            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-09