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:50:43 +0100 |
commit | 39d6ef884a6b66e8fb1773fe01e361703224ab73 (patch) | |
tree | 4d90984c16faa30b727e581560af412a2fd146cb /include | |
parent | 492d1f24c834a5d1320dfe9699c6fda65ab3e1ba (diff) | |
download | libssh-39d6ef884a6b66e8fb1773fe01e361703224ab73.tar.gz libssh-39d6ef884a6b66e8fb1773fe01e361703224ab73.tar.xz libssh-39d6ef884a6b66e8fb1773fe01e361703224ab73.zip |
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')
-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 5d53f861..a42c76e1 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; |