Re: [exim] bug (4.60): negative values in maildirsize file?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Arkadiusz Miskiewicz
CC: exim-users
Régi témák: [exim] bug (4.60): negative values in maildirsize file?
Tárgy: Re: [exim] bug (4.60): negative values in maildirsize file?
On Fri, 9 Dec 2005, Arkadiusz Miskiewicz wrote:

> exim 4.60:
>
> # rm /var/mail/arekm/maildirsize; echo test | mail arekm
> # cat /var/mail/arekm/maildirsize  | head
> -2147483648S,0C
> 3716 6
> 472 1
> #         

>
> Looks like overflow. Another thing is that it seems that quota is limited to
> 2GB (which is preety low).


I have now got round to looking at this. On my Linux box, where Exim is
compiled with -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE, the quota is
NOT limited to 2G. I have just run a test with quota=3G, and I end up
with a maildirsize that contains

3221225472S,0C
0 0
298 1

So, the question is, what system were you using and how was Exim
compiled? What I think I'll do is insert a test of the size of off_t
into the code of Exim, and have it generate an error if you try to set a
quota > 2G on a 32-bit system.

Philip

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.