dovecot: With 32bit time_t we were checking it up to 64 bits, wh...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Sep 30 18:24:43 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/6c46542a5ce5
changeset: 6522:6c46542a5ce5
user: Timo Sirainen <tss at iki.fi>
date: Sun Sep 30 18:24:39 2007 +0300
description:
With 32bit time_t we were checking it up to 64 bits, which overflowed the
checks and broke them.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
configure.in | 2 +-
diffs (12 lines):
diff -r 9534f7adc0c6 -r 6c46542a5ce5 configure.in
--- a/configure.in Sun Sep 30 18:23:36 2007 +0300
+++ b/configure.in Sun Sep 30 18:24:39 2007 +0300
@@ -928,7 +928,7 @@ AC_CACHE_CHECK([how large time_t values
FILE *f;
int bits;
- for (bits = 1; bits < 64; bits++) {
+ for (bits = 1; bits < sizeof(time_t)*8; bits++) {
time_t t = ((time_t)1 << bits) - 1;
if (gmtime(&t) == NULL) {
bits--;
More information about the dovecot-cvs
mailing list