dovecot-2.2: net_listen_unix(): If path is too long, return EOVE...
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/07cc79e0041d
changeset: 16806:07cc79e0041d
user: Timo Sirainen <tss at iki.fi>
date: Sun Sep 22 02:24:05 2013 +0300
description:
net_listen_unix(): If path is too long, return EOVERFLOW instead of EINVAL.
diffstat:
src/lib/net.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d064c57a601d -r 07cc79e0041d src/lib/net.c
--- a/src/lib/net.c Sun Sep 22 02:23:30 2013 +0300
+++ b/src/lib/net.c Sun Sep 22 02:24:05 2013 +0300
@@ -461,7 +461,7 @@
sa.un.sun_family = AF_UNIX;
if (i_strocpy(sa.un.sun_path, path, sizeof(sa.un.sun_path)) < 0) {
/* too long path */
- errno = EINVAL;
+ errno = EOVERFLOW;
return -1;
}
More information about the dovecot-cvs
mailing list