[Dovecot] Dovecot 64-bit and Pine error

Timo Sirainen tss at iki.fi
Tue Mar 15 00:21:41 EET 2005


On 14.3.2005, at 22:16, Remy Zandwijk wrote:

> 	Mar 14 16:33:28 tbox dovecot: [ID 107833 local1.error] IMAP(tstud1): 
> utime(/var/tmp/var_mailstore/
> 	t/tstud1/.Drafts/tmp/1110814408.P2681Q0M979308.tbox) failed: Value 
> too large for defined data type
>
> Compiling Dovecot in 32-bit, saving mail within Pine is doing just 
> fine.
>
> I guess this is caused by maildir-save.c, line 219. Is this a bug in 
> Solaris or Dovecot?

Looks like it's a bug in utc_mktime() function which is based on code 
from Cyrus.. And looks like they've since figured out a way to fix it:

+       /* Some gmtime() implementations are broken and will return
+        * NULL for time_ts larger than 40 bits even on 64-bit platforms
+        * so we'll just cap it at 40 bits */
+       if(bits > 40) bits = 40;

I'll implement a similar fix. If you change TIME_T_MAX_BITS in config.h 
to 40 it should work?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20050315/7319a5fb/attachment-0001.bin>


More information about the dovecot mailing list