Last change
on this file since 3631 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:eol-style
set to
native
|
File size:
721 bytes
|
Rev | Line | |
---|
[3320] | 1 | /* vi: set sw=4 ts=4: */
|
---|
| 2 | /*
|
---|
| 3 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | #include "libbb.h"
|
---|
| 7 | #include "unarchive.h"
|
---|
| 8 |
|
---|
| 9 | void header_verbose_list(const file_header_t *file_header)
|
---|
| 10 | {
|
---|
| 11 | struct tm *mtime = localtime(&(file_header->mtime));
|
---|
| 12 |
|
---|
| 13 | printf("%s %d/%d %9"OFF_FMT"u %4u-%02u-%02u %02u:%02u:%02u %s",
|
---|
| 14 | bb_mode_string(file_header->mode),
|
---|
| 15 | file_header->uid,
|
---|
| 16 | file_header->gid,
|
---|
| 17 | file_header->size,
|
---|
| 18 | 1900 + mtime->tm_year,
|
---|
| 19 | 1 + mtime->tm_mon,
|
---|
| 20 | mtime->tm_mday,
|
---|
| 21 | mtime->tm_hour,
|
---|
| 22 | mtime->tm_min,
|
---|
| 23 | mtime->tm_sec,
|
---|
| 24 | file_header->name);
|
---|
| 25 |
|
---|
| 26 | if (file_header->link_target) {
|
---|
| 27 | printf(" -> %s", file_header->link_target);
|
---|
| 28 | }
|
---|
| 29 | /* putchar isnt used anywhere else i dont think */
|
---|
| 30 | puts("");
|
---|
| 31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.