Last change
on this file since 1268 was 821, checked in by Bruno Cornec, 18 years ago |
Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)
|
File size:
667 bytes
|
Rev | Line | |
---|
[821] | 1 | #include <stdio.h>
|
---|
| 2 | #include <string.h>
|
---|
| 3 | #include <time.h>
|
---|
| 4 | #include "libbb.h"
|
---|
| 5 | #include "unarchive.h"
|
---|
| 6 |
|
---|
| 7 | void header_verbose_list(const file_header_t *file_header)
|
---|
| 8 | {
|
---|
| 9 | struct tm *mtime = localtime(&(file_header->mtime));
|
---|
| 10 |
|
---|
| 11 | printf("%s %d/%d%10u %4u-%02u-%02u %02u:%02u:%02u %s",
|
---|
| 12 | bb_mode_string(file_header->mode),
|
---|
| 13 | file_header->uid,
|
---|
| 14 | file_header->gid,
|
---|
| 15 | (unsigned int) file_header->size,
|
---|
| 16 | 1900 + mtime->tm_year,
|
---|
| 17 | 1 + mtime->tm_mon,
|
---|
| 18 | mtime->tm_mday,
|
---|
| 19 | mtime->tm_hour,
|
---|
| 20 | mtime->tm_min,
|
---|
| 21 | mtime->tm_sec,
|
---|
| 22 | file_header->name);
|
---|
| 23 |
|
---|
| 24 | if (file_header->link_name) {
|
---|
| 25 | printf(" -> %s", file_header->link_name);
|
---|
| 26 | }
|
---|
| 27 | /* putchar isnt used anywhere else i dont think */
|
---|
| 28 | puts("");
|
---|
| 29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.