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 +}