fix: Make the 'list' example show more metadata

This commit is contained in:
apio 2023-02-09 16:40:57 +01:00
parent 7571ef42c6
commit 320231c70b
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -24,9 +24,9 @@ int main(int argc, char** argv)
} }
struct minitar_entry entry; struct minitar_entry entry;
do { 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 else
break; break;
} while (1); } while (1);
minitar_close(&mp); minitar_close(&mp);
} }