1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2026-01-06 14:21:55 +03:00

Added owner and group information in sftp attributes.

Parse the longname which is the output of 'ls -l' and set the owner and
group if we are talking to an openssh server.
This commit is contained in:
Andreas Schneider
2010-02-23 22:50:43 +01:00
parent 492d1f24c8
commit 39d6ef884a
2 changed files with 56 additions and 4 deletions

View File

@@ -149,17 +149,16 @@ struct sftp_status_message_struct {
char *langmsg;
};
/* don't worry much of these aren't really used */
struct sftp_attributes_struct {
char *name;
char *longname; /* some weird stuff */
char *longname; /* ls -l output on openssh, not reliable else */
uint32_t flags;
uint8_t type;
uint64_t size;
uint32_t uid;
uint32_t gid;
char *owner;
char *group;
char *owner; /* set if openssh and version 4 */
char *group; /* set if openssh and version 4 */
uint32_t permissions;
uint64_t atime64;
uint32_t atime;