dovecot: If physical size lookup fails, return (uoff_t)-1, not (...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jul 25 08:45:18 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/705773edecfb
changeset: 6143:705773edecfb
user: Timo Sirainen <tss at iki.fi>
date: Tue Jul 24 07:57:52 2007 +0300
description:
If physical size lookup fails, return (uoff_t)-1, not (time_t)-1.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/cydir/cydir-mail.c | 2 +-
diffs (12 lines):
diff -r 6c0bfc35af03 -r 705773edecfb src/lib-storage/index/cydir/cydir-mail.c
--- a/src/lib-storage/index/cydir/cydir-mail.c Tue Jul 24 06:59:56 2007 +0300
+++ b/src/lib-storage/index/cydir/cydir-mail.c Tue Jul 24 07:57:52 2007 +0300
@@ -84,7 +84,7 @@ static uoff_t cydir_mail_get_physical_si
return data->physical_size;
if (cydir_mail_stat(_mail, &st) < 0)
- return (time_t)-1;
+ return (uoff_t)-1;
data->physical_size = data->virtual_size = st.st_size;
index_mail_cache_add(mail, MAIL_CACHE_PHYSICAL_FULL_SIZE,
More information about the dovecot-cvs
mailing list