unzip -l: add missed big-endian conversions date and time
When calling unzip -l the date and time output was missing big-endian conversions. Signed-off-by: Peter Kaestle <peter.kaestle@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
99476502f9
commit
7ade421b1a
@ -118,6 +118,8 @@ typedef union {
|
|||||||
#define FIX_ENDIANNESS_ZIP(zip) \
|
#define FIX_ENDIANNESS_ZIP(zip) \
|
||||||
do { if (BB_BIG_ENDIAN) { \
|
do { if (BB_BIG_ENDIAN) { \
|
||||||
(zip).fmt.method = SWAP_LE16((zip).fmt.method ); \
|
(zip).fmt.method = SWAP_LE16((zip).fmt.method ); \
|
||||||
|
(zip).fmt.modtime = SWAP_LE16((zip).fmt.modtime ); \
|
||||||
|
(zip).fmt.moddate = SWAP_LE16((zip).fmt.moddate ); \
|
||||||
(zip).fmt.crc32 = SWAP_LE32((zip).fmt.crc32 ); \
|
(zip).fmt.crc32 = SWAP_LE32((zip).fmt.crc32 ); \
|
||||||
(zip).fmt.cmpsize = SWAP_LE32((zip).fmt.cmpsize ); \
|
(zip).fmt.cmpsize = SWAP_LE32((zip).fmt.cmpsize ); \
|
||||||
(zip).fmt.ucmpsize = SWAP_LE32((zip).fmt.ucmpsize ); \
|
(zip).fmt.ucmpsize = SWAP_LE32((zip).fmt.ucmpsize ); \
|
||||||
|
Loading…
Reference in New Issue
Block a user