Skip site navigation (1)Skip section navigation (2)
Date:      18 Jun 2004 23:42:45 -0000
From:      Rui Lopes <rui@ruilopes.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        oliver@FreeBSD.org
Subject:   ports/68094: [PATCH] mail/courier-imap Fix for quota problem
Message-ID:  <20040618234245.81270.qmail@griffin.clustercube.com>
Resent-Message-ID: <200406182350.i5INoN82090202@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040618234245.81270.qmail>