dovecot-2.0: lib-index: Give a clearer error message for syscall...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Aug 18 18:24:18 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/706f30fa4028
changeset: 12009:706f30fa4028
user: Timo Sirainen <tss at iki.fi>
date: Wed Aug 18 16:24:13 2010 +0100
description:
lib-index: Give a clearer error message for syscall failing with EFBIG.
diffstat:
src/lib-index/mail-index.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r 038f25c02bb7 -r 706f30fa4028 src/lib-index/mail-index.c
--- a/src/lib-index/mail-index.c Wed Aug 18 16:21:04 2010 +0100
+++ b/src/lib-index/mail-index.c Wed Aug 18 16:24:13 2010 +0100
@@ -840,8 +840,10 @@
errstr = eacces_error_get(function, filepath);
return mail_index_set_error(index, "%s", errstr);
} else {
- return mail_index_set_error(index, "%s failed with file %s: %m",
- function, filepath);
+ const char *suffix = errno != EFBIG ? "" :
+ " (process was started with ulimit -f limit)";
+ return mail_index_set_error(index, "%s failed with file %s: "
+ "%m%s", function, filepath, suffix);
}
}
More information about the dovecot-cvs
mailing list