Changeset 1770 in MondoRescue for branches/stable/mindi-busybox/archival/libunarchive/header_verbose_list.c
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/archival/libunarchive/header_verbose_list.c
r821 r1770 1 #include <stdio.h> 2 #include <string.h> 3 #include <time.h> 1 /* vi: set sw=4 ts=4: */ 2 /* 3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 4 */ 5 4 6 #include "libbb.h" 5 7 #include "unarchive.h" … … 9 11 struct tm *mtime = localtime(&(file_header->mtime)); 10 12 11 printf("%s %d/%d %10u %4u-%02u-%02u %02u:%02u:%02u %s",13 printf("%s %d/%d %9"OFF_FMT"u %4u-%02u-%02u %02u:%02u:%02u %s", 12 14 bb_mode_string(file_header->mode), 13 15 file_header->uid, 14 16 file_header->gid, 15 (unsigned int)file_header->size,17 file_header->size, 16 18 1900 + mtime->tm_year, 17 19 1 + mtime->tm_mon, … … 22 24 file_header->name); 23 25 24 if (file_header->link_ name) {25 printf(" -> %s", file_header->link_ name);26 if (file_header->link_target) { 27 printf(" -> %s", file_header->link_target); 26 28 } 27 29 /* putchar isnt used anywhere else i dont think */
Note:
See TracChangeset
for help on using the changeset viewer.