diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-24 17:53:18 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-24 17:53:18 +0300 |
commit | cf30cc82a343802b601f01ae153916887f11eb7b (patch) | |
tree | dd5af380364efe67c7bd302d6c1c6d70f303f959 /archival/libunarchive/header_verbose_list.c | |
parent | 376ce1e775a97a01f1c454497fbe34d326043328 (diff) |
header_verbose_list: stop truncating file size in listing
Diffstat (limited to 'archival/libunarchive/header_verbose_list.c')
-rw-r--r-- | archival/libunarchive/header_verbose_list.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/archival/libunarchive/header_verbose_list.c b/archival/libunarchive/header_verbose_list.c index 130b6a268..7b97e524c 100644 --- a/archival/libunarchive/header_verbose_list.c +++ b/archival/libunarchive/header_verbose_list.c @@ -3,9 +3,6 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -#include <stdio.h> -#include <string.h> -#include <time.h> #include "libbb.h" #include "unarchive.h" @@ -13,11 +10,11 @@ void header_verbose_list(const file_header_t *file_header) { struct tm *mtime = localtime(&(file_header->mtime)); - printf("%s %d/%d%10u %4u-%02u-%02u %02u:%02u:%02u %s", + printf("%s %d/%d %9"OFF_FMT"u %4u-%02u-%02u %02u:%02u:%02u %s", bb_mode_string(file_header->mode), file_header->uid, file_header->gid, - (unsigned int) file_header->size, + file_header->size, 1900 + mtime->tm_year, 1 + mtime->tm_mon, mtime->tm_mday, |