2006-07-02 19:47:05 +00:00
|
|
|
/* vi: set sw=4 ts=4: */
|
2006-07-12 07:56:04 +00:00
|
|
|
/*
|
|
|
|
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
|
|
|
*/
|
|
|
|
|
2002-09-25 02:47:48 +00:00
|
|
|
#include "libbb.h"
|
|
|
|
#include "unarchive.h"
|
|
|
|
|
2006-03-06 20:47:33 +00:00
|
|
|
void header_verbose_list(const file_header_t *file_header)
|
2002-09-25 02:47:48 +00:00
|
|
|
{
|
2005-11-12 02:54:06 +00:00
|
|
|
struct tm *mtime = localtime(&(file_header->mtime));
|
2002-09-25 02:47:48 +00:00
|
|
|
|
2006-11-24 14:53:18 +00:00
|
|
|
printf("%s %d/%d %9"OFF_FMT"u %4u-%02u-%02u %02u:%02u:%02u %s",
|
2003-03-19 09:13:01 +00:00
|
|
|
bb_mode_string(file_header->mode),
|
2002-09-25 02:47:48 +00:00
|
|
|
file_header->uid,
|
|
|
|
file_header->gid,
|
2006-11-24 14:53:18 +00:00
|
|
|
file_header->size,
|
2002-09-25 02:47:48 +00:00
|
|
|
1900 + mtime->tm_year,
|
|
|
|
1 + mtime->tm_mon,
|
|
|
|
mtime->tm_mday,
|
|
|
|
mtime->tm_hour,
|
|
|
|
mtime->tm_min,
|
|
|
|
mtime->tm_sec,
|
|
|
|
file_header->name);
|
|
|
|
|
2007-06-20 14:49:47 +00:00
|
|
|
if (file_header->link_target) {
|
|
|
|
printf(" -> %s", file_header->link_target);
|
2002-09-25 02:47:48 +00:00
|
|
|
}
|
|
|
|
/* putchar isnt used anywhere else i dont think */
|
|
|
|
puts("");
|
|
|
|
}
|