Subject: Re: libssh2_sftp_fstat_ex(): getting user and group

Re: libssh2_sftp_fstat_ex(): getting user and group

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 16 Feb 2011 23:03:25 +0100 (CET)

On Wed, 16 Feb 2011, Serghei Amelian wrote:

> Is there any way to find the user and a group? With libssh2_sftp_fstat_ex()
> I can only read uid and gid. With libssh2_sftp_opendir() I can use
> "longentry", but i want to use libssh2_sftp_fstat_ex() as well.

No, it is not possible.

libssh2 implements SFTP version 3 and it doesn't provide that information. If
libssh2 would implement a later SFTP version and the server you're
communicating with also does, then it would be possible... I believe for
example OpenSSH also only implement SFTP version 3.

See http://www.greenend.org.uk/rjk/2007/sftpversions.html for a great overview
of SFTP differences.

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-02-16