From: Mathieu Desnoyers Date: Tue, 9 Apr 2013 15:50:20 +0000 (-0400) Subject: connect: don't report EACCES X-Git-Tag: v2.2.0-rc2~15 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bdd8ca83b1aee3f535c096ae01f2afc2073c1376;p=lttng-ust.git connect: don't report EACCES Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust-comm/lttng-ust-comm.c b/liblttng-ust-comm/lttng-ust-comm.c index 7a87ff1a..087424fe 100644 --- a/liblttng-ust-comm/lttng-ust-comm.c +++ b/liblttng-ust-comm/lttng-ust-comm.c @@ -123,7 +123,7 @@ int ustcomm_connect_unix_sock(const char *pathname) * file exists but no sessiond is listening. */ if (errno != ECONNREFUSED && errno != ECONNRESET - && errno != ENOENT && errno != EPERM) + && errno != ENOENT && errno != EACCES) PERROR("connect"); ret = -errno; if (ret == -ECONNREFUSED || ret == -ECONNRESET)