dovecot: If maildirsize file is being rewritten while we're tryi...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jun 19 14:25:36 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/213b597e57de
changeset: 5770:213b597e57de
user: Timo Sirainen <tss at iki.fi>
date: Tue Jun 19 14:25:30 2007 +0300
description:
If maildirsize file is being rewritten while we're trying to do that,
recalculate it later instead of failing with "Unknown quota error".
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/plugins/quota/quota-maildir.c | 2 +-
diffs (12 lines):
diff -r 901a9ba8cff7 -r 213b597e57de src/plugins/quota/quota-maildir.c
--- a/src/plugins/quota/quota-maildir.c Mon Jun 18 01:34:17 2007 +0300
+++ b/src/plugins/quota/quota-maildir.c Tue Jun 19 14:25:30 2007 +0300
@@ -222,7 +222,7 @@ static int maildirsize_write(struct mail
if (fd == -1) {
if (errno == EAGAIN) {
/* someone's just in the middle of updating it */
- return -1;
+ return 1;
}
i_error("file_dotlock_open(%s) failed: %m", path);
More information about the dovecot-cvs
mailing list