From 320231c70b48a62aea1808cb588cde01322e51bb Mon Sep 17 00:00:00 2001 From: apio Date: Thu, 9 Feb 2023 16:40:57 +0100 Subject: [PATCH] fix: Make the 'list' example show more metadata --- examples/list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/list.c b/examples/list.c index b3e1c78..0df7a25 100644 --- a/examples/list.c +++ b/examples/list.c @@ -24,9 +24,9 @@ int main(int argc, char** argv) } struct minitar_entry entry; do { - if (minitar_read_entry(&mp, &entry) == 0) { printf("%s\n", entry.metadata.path); } + if (minitar_read_entry(&mp, &entry) == 0) { printf("%s (%s, %zu bytes, mode %o)\n", entry.metadata.path, entry.metadata.name, entry.metadata.size, entry.metadata.mode); } else break; } while (1); minitar_close(&mp); -} \ No newline at end of file +}