From: Timo Sirainen Date: Wed, 18 Aug 2010 15:24:13 +0000 (+0100) Subject: lib-index: Give a clearer error message for syscall failing with EFBIG. X-Git-Tag: 2.0.1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bb8c6900ad4f1223f388a6814bed0fb80ae27d2;p=thirdparty%2Fdovecot%2Fcore.git lib-index: Give a clearer error message for syscall failing with EFBIG. --- diff --git a/src/lib-index/mail-index.c b/src/lib-index/mail-index.c index 9adce5b9a2..afb91f1f01 100644 --- a/src/lib-index/mail-index.c +++ b/src/lib-index/mail-index.c @@ -840,8 +840,10 @@ int mail_index_file_set_syscall_error(struct mail_index *index, 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); } }