1 message in net.sourceforge.lists.courier-sqwebmail[sqwebmail] another 64 bits off_t issue
FromSent OnAttachments
Laurent WacrenierNov 8, 2004 4:03 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[sqwebmail] another 64 bits off_t issueActions...
From:Laurent Wacrenier (lw@teaser.fr)
Date:Nov 8, 2004 4:03:21 am
List:net.sourceforge.lists.courier-sqwebmail

On i386 FreeBSD, off_t are 64 bits length but long are 32 bits. When deleting a message, the maildirsize file appear to be buggy :

1048576S 406705 103 4294966144 -1

It's fixed with the following patch (it apply on 4.0.6 but the wrong cast is still here in the CVS version) :

--- maildir.c.orig.2 Mon Nov 8 12:45:10 2004 +++ maildir.c Mon Nov 8 12:46:11 2004 @@ -893,7 +893,7 @@ {

if (!from_shared) - maildir_quota_deleted(".", -filesize, -1); + maildir_quota_deleted(".", -(off_t)filesize, -1); } else if (!dest_shared && maildirquota_countfolder(destdir) && (from_shared || !maildirquota_countfolder(fromdir))