From: Timo Sirainen Date: Sat, 21 Sep 2013 23:24:05 +0000 (+0300) Subject: net_listen_unix(): If path is too long, return EOVERFLOW instead of EINVAL. X-Git-Tag: 2.2.6~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=731238b42df3953f63bf0f44d18ef58b27a1cc29;p=thirdparty%2Fdovecot%2Fcore.git net_listen_unix(): If path is too long, return EOVERFLOW instead of EINVAL. --- diff --git a/src/lib/net.c b/src/lib/net.c index b2e9a09c9a..573041eb30 100644 --- a/src/lib/net.c +++ b/src/lib/net.c @@ -461,7 +461,7 @@ int net_listen_unix(const char *path, int backlog) 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; }