aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/samplesftp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/samplesftp.c b/examples/samplesftp.c
index 469ef362..a7428a5b 100644
--- a/examples/samplesftp.c
+++ b/examples/samplesftp.c
@@ -152,10 +152,12 @@ static void do_sftp(ssh_session session){
}
/* reading the whole directory, file by file */
while((file=sftp_readdir(sftp,dir))){
- fprintf(stderr, "%30s(%.8o) : %.5d.%.5d : %.10llu bytes\n",
+ fprintf(stderr, "%30s(%.8o) : %s(%.5d) %s(%.5d) : %.10llu bytes\n",
file->name,
file->permissions,
+ file->owner,
file->uid,
+ file->group,
file->gid,
(long long unsigned int) file->size);
sftp_attributes_free(file);