Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4093:840d6403ef09 HEAD
Fixes to updating maildirsize.
author | Timo Sirainen <timo.sirainen@movial.fi> |
---|---|
date | Mon, 06 Mar 2006 21:04:25 +0200 |
parents | ae38c59ddf60 |
children | 03e14e3a4610 |
files | src/plugins/quota/quota-maildir.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/quota/quota-maildir.c Mon Mar 06 20:16:12 2006 +0200 +++ b/src/plugins/quota/quota-maildir.c Mon Mar 06 21:04:25 2006 +0200 @@ -457,6 +457,9 @@ const char *str; int ret = 0; + if (count_diff == 0 && bytes_diff == 0) + return 0; + t_push(); /* We rely on O_APPEND working in here. That isn't NFS-safe, but it @@ -464,7 +467,7 @@ a while, and sooner if corruption cases calculations to go over quota. This is also how Maildir++ spec specifies it should be done.. */ - str = t_strdup_printf("%d %lld\n", count_diff, (long long)bytes_diff); + str = t_strdup_printf("%lld %d\n", (long long)bytes_diff, count_diff); if (write_full(root->fd, str, strlen(str)) < 0) { ret = -1; if (errno == ESTALE) {