dovecot-2.2: net_connect_unix(): If path is too long, return ENA...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jan 9 05:39:06 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/e4cc3f2b66e3
changeset: 15601:e4cc3f2b66e3
user: Timo Sirainen <tss at iki.fi>
date: Tue Jan 08 03:19:14 2013 +0200
description:
net_connect_unix(): If path is too long, return ENAMETOOLONG if it's available.
diffstat:
src/lib/network.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 36eb80cd02ea -r e4cc3f2b66e3 src/lib/network.c
--- a/src/lib/network.c Mon Jan 07 10:55:27 2013 +0200
+++ b/src/lib/network.c Tue Jan 08 03:19:14 2013 +0200
@@ -278,7 +278,11 @@
sa.un.sun_family = AF_UNIX;
if (i_strocpy(sa.un.sun_path, path, sizeof(sa.un.sun_path)) < 0) {
/* too long path */
+#ifdef ENAMETOOLONG
+ errno = ENAMETOOLONG;
+#else
errno = EINVAL;
+#endif
return -1;
}
More information about the dovecot-cvs
mailing list