[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] unzip -l: add missed big-endian conversions date and time
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2022-11-29 13:45:03
Message-ID: CAK1hOcNi6AR73fD-m9P7Hd-KqR+1Zy_q71arSnYY-D6xfQkzOQ () mail ! gmail ! com
[Download RAW message or body]
Applied, thank you
On Tue, Oct 25, 2022 at 1:57 PM Peter Kaestle <peter.kaestle@nokia.com> wrote:
>
> When calling unzip -l the date and time output was missing big-endian
> conversions.
>
> Signed-off-by: Peter Kästle <peter.kaestle@nokia.com>
> ---
> archival/unzip.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> 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 {
> #define FIX_ENDIANNESS_ZIP(zip) \
> do { if (BB_BIG_ENDIAN) { \
> (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.cmpsize = SWAP_LE32((zip).fmt.cmpsize ); \
> (zip).fmt.ucmpsize = SWAP_LE32((zip).fmt.ucmpsize ); \
> --
> 2.38.0
>
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic