diff options
author | Andreas Schneider <mail@cynapses.org> | 2010-02-24 00:26:20 +0100 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2010-02-24 00:26:20 +0100 |
commit | 83ff1ffcc3ea8c1810720a76d6a543755a984ce4 (patch) | |
tree | 4bab867efa89d475eb8def1f366ad1aff52e1958 | |
parent | fb35153b49763a818cb772363780a4ed4be95901 (diff) | |
download | libssh-83ff1ffcc3ea8c1810720a76d6a543755a984ce4.tar.gz libssh-83ff1ffcc3ea8c1810720a76d6a543755a984ce4.tar.xz libssh-83ff1ffcc3ea8c1810720a76d6a543755a984ce4.zip |
Added printout of owner and group in the sftp example.
-rw-r--r-- | examples/samplesftp.c | 4 |
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); |