dovecot-2.2: If EOVERFLOW errno isn't defined by system, fallbac...

dovecot at dovecot.org dovecot at dovecot.org
Sun Sep 22 02:24:19 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/d064c57a601d
changeset: 16805:d064c57a601d
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Sep 22 02:23:30 2013 +0300
description:
If EOVERFLOW errno isn't defined by system, fallback to ERANGE instead of EINVAL.
ERANGE is used by other functions as well, such as getpwnam_r().

diffstat:

 src/lib/compat.h |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 897484f45a87 -r d064c57a601d src/lib/compat.h
--- a/src/lib/compat.h	Sun Sep 22 02:20:09 2013 +0300
+++ b/src/lib/compat.h	Sun Sep 22 02:23:30 2013 +0300
@@ -226,7 +226,7 @@
 #define i_isxdigit(x) isxdigit((int) (unsigned char) (x))
 
 #ifndef EOVERFLOW
-#  define EOVERFLOW EINVAL
+#  define EOVERFLOW ERANGE
 #endif
 
 #ifdef EDQUOT


More information about the dovecot-cvs mailing list