diff options
| author | Andreas Schneider <mail@cynapses.org> | 2010-02-23 22:50:43 +0100 |
|---|---|---|
| committer | Andreas Schneider <mail@cynapses.org> | 2010-02-23 22:52:56 +0100 |
| commit | 7539200773e14c95366f411c27419a75745fe38e (patch) | |
| tree | 50b66b706669abce73b5419f68eef30c84a20b05 /include/libssh | |
| parent | 254a166c024e70b8e1d31e8aae05566a54248d3d (diff) | |
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.
Diffstat (limited to 'include/libssh')
| -rw-r--r-- | include/libssh/sftp.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index 14b24474..1eab5823 100644 --- a/include/libssh/sftp.h +++ b/include/libssh/sftp.h @@ -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; |
