Subject: Re: [libssh2] #189: Error is not correctly reported when authenticated user does not have access to remote_file

Re: [libssh2] #189: Error is not correctly reported when authenticated user does not have access to remote_file

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Wed, 10 Nov 2010 16:25:48 -0000

#189: Error is not correctly reported when authenticated user does not have
access to remote_file
---------------------------------------------------------------------------------------+
  Reporter: www.google.com/accounts/o8/id?id=aitoawmvjpzhdvrzdugilqti7ni8qkfjov_hilk | Owner:
      Type: defect | Status: closed
  Priority: normal | Milestone: 1.2.6
 Component: protocol | Version: 1.2.6
Resolution: worksforme | Keywords:
    Blocks: | Blocked By:
---------------------------------------------------------------------------------------+
Changes (by bagder):

  * status: new => closed
  * resolution: => worksforme

Comment:

 I just tried this with the git version and I cannot repeat your problems.

 With SCP, we get LIBSSH2_ERROR_SCP_PROTOCOL returned as there's really no
 good way to detect "file not found".

 With SFTP, libssh2_sftp_open() fails and libssh2_sftp_last_error() returns
 2, which according to the header file is LIBSSH2_FX_NO_SUCH_FILE.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/189#comment:1>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-11-10