projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tar et al: die if bb_copyfd_size copies less than asked for.
[oweals/busybox.git]
/
archival
/
libunarchive
/
header_verbose_list.c
diff --git
a/archival/libunarchive/header_verbose_list.c
b/archival/libunarchive/header_verbose_list.c
index ff7b3bca271d62fa2b5052035b3fcff5d9b94b8e..7b97e524c863e4dbf0a3050248615bdd0e904444 100644
(file)
--- a/
archival/libunarchive/header_verbose_list.c
+++ b/
archival/libunarchive/header_verbose_list.c
@@
-1,18
+1,20
@@
-#include <stdio.h>
-#include <string.h>
-#include <time.h>
+/* vi: set sw=4 ts=4: */
+/*
+ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ */
+
#include "libbb.h"
#include "unarchive.h"
#include "libbb.h"
#include "unarchive.h"
-
extern
void header_verbose_list(const file_header_t *file_header)
+void header_verbose_list(const file_header_t *file_header)
{
{
- struct tm *mtime = localtime(&
file_header->mtime
);
+ struct tm *mtime = localtime(&
(file_header->mtime)
);
- printf("%s %d/%d
%10
u %4u-%02u-%02u %02u:%02u:%02u %s",
- mode_string(file_header->mode),
+ 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,
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,
1900 + mtime->tm_year,
1 + mtime->tm_mon,
mtime->tm_mday,