]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Give a clearer error message for syscall failing with EFBIG.
authorTimo Sirainen <tss@iki.fi>
Wed, 18 Aug 2010 15:24:13 +0000 (16:24 +0100)
committerTimo Sirainen <tss@iki.fi>
Wed, 18 Aug 2010 15:24:13 +0000 (16:24 +0100)
src/lib-index/mail-index.c

index 9adce5b9a2b5cf545e920cd67b4736183e5c1c29..afb91f1f0151a10570139c511b1a7885e8747804 100644 (file)
@@ -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);
        }
 }