diff options
author | Peter Kaestle <peter.kaestle@nokia.com> | 2022-10-25 13:56:48 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-11-29 14:44:39 +0100 |
commit | 7ade421b1a410f4d2d2314f06d7f5a9d0fd123ec (patch) | |
tree | 942ee8c642d4398c282d4ce10be0c079f1edce02 | |
parent | 99476502f926fb6e5d61126c3b672f3f6f357d5d (diff) | |
download | busybox-w32-7ade421b1a410f4d2d2314f06d7f5a9d0fd123ec.tar.gz busybox-w32-7ade421b1a410f4d2d2314f06d7f5a9d0fd123ec.tar.bz2 busybox-w32-7ade421b1a410f4d2d2314f06d7f5a9d0fd123ec.zip |
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>
-rw-r--r-- | archival/unzip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archival/unzip.c b/archival/unzip.c index fc92ac661..b27dd2187 100644 --- a/archival/unzip.c +++ b/archival/unzip.c | |||
@@ -118,6 +118,8 @@ typedef union { | |||
118 | #define FIX_ENDIANNESS_ZIP(zip) \ | 118 | #define FIX_ENDIANNESS_ZIP(zip) \ |
119 | do { if (BB_BIG_ENDIAN) { \ | 119 | do { if (BB_BIG_ENDIAN) { \ |
120 | (zip).fmt.method = SWAP_LE16((zip).fmt.method ); \ | 120 | (zip).fmt.method = SWAP_LE16((zip).fmt.method ); \ |
121 | (zip).fmt.modtime = SWAP_LE16((zip).fmt.modtime ); \ | ||
122 | (zip).fmt.moddate = SWAP_LE16((zip).fmt.moddate ); \ | ||
121 | (zip).fmt.crc32 = SWAP_LE32((zip).fmt.crc32 ); \ | 123 | (zip).fmt.crc32 = SWAP_LE32((zip).fmt.crc32 ); \ |
122 | (zip).fmt.cmpsize = SWAP_LE32((zip).fmt.cmpsize ); \ | 124 | (zip).fmt.cmpsize = SWAP_LE32((zip).fmt.cmpsize ); \ |
123 | (zip).fmt.ucmpsize = SWAP_LE32((zip).fmt.ucmpsize ); \ | 125 | (zip).fmt.ucmpsize = SWAP_LE32((zip).fmt.ucmpsize ); \ |