<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Committed, thanks!<div><br></div><div>christos<br><div><br><blockquote type="cite"><div>On Jul 31, 2023, at 3:51 AM, Dr. Werner Fink <werner@suse.de> wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div class="content-isolator__container" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div class="protected-part"><div class="protected-title">Signed PGP part</div><div class="protected-content">On 2023/07/28 10:38:11 -0400, Christos Zoulas wrote:<br><blockquote type="cite">How about this?<br><br>christos<br><br>Index: file.h<br>===================================================================<br>RCS file: /p/file/cvsroot/file/src/file.h,v<br>retrieving revision 1.247<br>diff -u -p -u -r1.247 file.h<br>--- file.h 27 Jul 2023 19:40:22 -0000 1.247<br>+++ file.h 28 Jul 2023 14:37:17 -0000<br>@@ -159,9 +159,11 @@<br>/*<br> * Dec 31, 23:59:59 9999<br> * we need to make sure that we don't exceed 9999 because some libc<br>- * implementations like muslc crash otherwise<br>+ * implementations like muslc crash otherwise. If you are unlucky<br>+ * to be running on a system with a 32 bit time_t, then it is even less.<br> */<br>-#define MAX_CTIME CAST(time_t, 0x3afff487cfULL)<br>+#define MAX_CTIME \<br>+ CAST(time_t, sizeof(time_t) > 4 ? 0x3afff487cfULL : 0x7fffffffULL)<br><br>#define FILE_BADSIZE CAST(size_t, ~0ul)<br>#define MAXDESC 64 /* max len of text description/MIME type */<br></blockquote><br>Indeed that works also ... for glibc based systems or if autoconf 2.72c and<br>newer I'd like to suggest the extended and attached patch as this enables<br>wide time_t on 32bt platforms if available.<br><br>Werner<br><br>--<span class="Apple-converted-space"> </span><br> "Having a smoking section in a restaurant is like having<br> a peeing section in a swimming pool." -- Edward Burr<br><span id="cid:2BAC71D0-60B1-47CB-B0F2-BE722438DCD1"><file-5_45-type_t_dif.DEFANGED-2></span></div></div><br><iframe class="content-isolator__isolated-content" sandbox="allow-scripts" scrolling="auto" width="200" height="10" data-src="data:text/html;charset=UTF-8;base64,PGlmcmFtZS1jb250ZW50IGRhdGEtaWZyYW1lLWhlaWdodD0idHJ1ZSI+PG9iamVjdCB0eXBlPSJhcHBsaWNhdGlvbi94LWFwcGxlLW1zZy1hdHRhY2htZW50IiBkYXRhPSJjaWQ6NTVEREI1ODYtQzQ1OS00RjhCLUI5MkUtRTE5NTAzQTJCQjdDIj48L29iamVjdD48L2lmcmFtZS1jb250ZW50Pg==" src="data:text/html;charset=UTF-8;base64,PGlmcmFtZS1jb250ZW50IGRhdGEtaWZyYW1lLWhlaWdodD0idHJ1ZSI+PG9iamVjdCB0eXBlPSJhcHBsaWNhdGlvbi94LWFwcGxlLW1zZy1hdHRhY2htZW50IiBkYXRhPSJjaWQ6NTVEREI1ODYtQzQ1OS00RjhCLUI5MkUtRTE5NTAzQTJCQjdDIj48L29iamVjdD48L2lmcmFtZS1jb250ZW50Pg==" style="border: medium; display: block; overflow: auto;"></iframe></div><br class="Apple-interchange-newline"></div></blockquote></div><br></div></body></html>