# HG changeset patch # User Timo Sirainen # Date 1254754007 14400 # Node ID 2d4d9b0cdcc10dd0127b8219f315128f5997c4fc # Parent 9a8c565adbe159fc706367d84ce339467933235f auth-master lookup: Give better error message on connect() EACCES errors. diff -r 9a8c565adbe1 -r 2d4d9b0cdcc1 src/lib-auth/auth-master.c --- a/src/lib-auth/auth-master.c Thu Oct 01 16:40:32 2009 -0400 +++ b/src/lib-auth/auth-master.c Mon Oct 05 10:46:47 2009 -0400 @@ -4,6 +4,7 @@ #include "lib-signals.h" #include "array.h" #include "ioloop.h" +#include "eacces-error.h" #include "network.h" #include "istream.h" #include "ostream.h" @@ -227,8 +228,14 @@ usleep(((rand() % 10) + 1) * 10000); } if (fd == -1) { - i_error("userdb lookup: connect(%s) failed: %m", - conn->auth_socket_path); + if (errno == EACCES) { + i_error("userdb lookup: %s", + eacces_error_get("connect", + conn->auth_socket_path)); + } else { + i_error("userdb lookup: connect(%s) failed: %m", + conn->auth_socket_path); + } return -1; } conn->fd = fd;