summaryrefslogtreecommitdiff
path: root/archival/libunarchive/header_verbose_list.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-12-12 02:14:35 +0000
committerDenis Vlasenko2008-12-12 02:14:35 +0000
commitab6b446e9567db741b463f74afb7d98cc583c4b9 (patch)
tree5a58620c525bf524451adec2ab2121fea04f04f8 /archival/libunarchive/header_verbose_list.c
parent12abcb36c871f4c97d7aed3d9bd55e5477888bb7 (diff)
downloadbusybox-ab6b446e9567db741b463f74afb7d98cc583c4b9.zip
busybox-ab6b446e9567db741b463f74afb7d98cc583c4b9.tar.gz
header_verbose_list: show off_t size, not cast to (unsigned)
get_header_tar: support GNU tar's "base256" encoding function old new delta get_header_tar 1536 1600 +64 header_verbose_list 242 257 +15
Diffstat (limited to 'archival/libunarchive/header_verbose_list.c')
-rw-r--r--archival/libunarchive/header_verbose_list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/libunarchive/header_verbose_list.c b/archival/libunarchive/header_verbose_list.c
index f059dd9..dc31003 100644
--- a/archival/libunarchive/header_verbose_list.c
+++ b/archival/libunarchive/header_verbose_list.c
@@ -24,11 +24,11 @@ void FAST_FUNC header_verbose_list(const file_header_t *file_header)
snprintf(gid, sizeof(gid), "%u", (unsigned)file_header->gid);
group = gid;
}
- printf("%s %s/%s %9u %4u-%02u-%02u %02u:%02u:%02u %s",
+ printf("%s %s/%s %9"OFF_FMT"u %4u-%02u-%02u %02u:%02u:%02u %s",
bb_mode_string(file_header->mode),
user,
group,
- (unsigned int) file_header->size,
+ file_header->size,
1900 + mtime->tm_year,
1 + mtime->tm_mon,
mtime->tm_mday,