ports/68094: [PATCH] mail/courier-imap Fix for quota problem
Rui Lopes
rui at ruilopes.com
Fri Jun 18 23:51:20 UTC 2004
>Number: 68094
>Category: ports
>Synopsis: [PATCH] mail/courier-imap Fix for quota problem
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Jun 18 23:50:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Rui Lopes
>Release: FreeBSD 4.9-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
imapd incorrectly calculates maildir quotas due to missuse of
pointer to off_t (64bit) vs pointer to long (32 bit).
See this thread for details:
http://sourceforge.net/mailarchive/forum.php?thread_id=4961745&forum_id=33081
>How-To-Repeat:
>Fix:
--- patch-maildir::maildirquota.c begins here ---
--- maildir/maildirquota.c.orig Fri Jun 18 23:27:53 2004
+++ maildir/maildirquota.c Fri Jun 18 23:45:01 2004
@@ -748,7 +748,7 @@
char *p;
DIR *dirp;
struct dirent *de;
-off_t s;
+unsigned long s;
if (stat(dir, &stat_buf)) return (0); /* Ignore */
if (stat_buf.st_mtime > *dirstamp) *dirstamp=stat_buf.st_mtime;
--- patch-maildir::maildirquota.c ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list