Paul Marquess - 2025-08-09

Thanks for taking the time to provide a patch for TIME_T_TYPE_DOUBLE.

Confirmed that building the unzip 6.0 source with -DTIME_T_TYPE_DOUBLE does trigger a number of compilation issues.

Although your patch does silence them, I see that the updates to the development source for unzip appear to have a fix for this issue -- it builds with any compilation errors. . With a very superficial look at the sources, I suspect your's my be the correct change. Won't know for sure until I run a few tests.

One thing I notice is that the patch needs fuzz to make it apply. What version of unzip sources did you apply this change to and where did you get it?

$ patch -p1 <../2038.diff 
(Stripping trailing CRs from patch; use --binary to disable.)
patching file process.c
Hunk #1 succeeded at 2798 (offset -56 lines).
Hunk #2 succeeded at 2828 (offset -56 lines).
patch unexpectedly ends in middle of line
Hunk #3 succeeded at 2979 with fuzz 1 (offset -59 lines).

Out of interest, are you encountering an issue that means you need this fix right now?