access: always put access in property

Improve debug
This commit is contained in:
Wim Taymans 2020-07-17 16:47:14 +02:00
parent cd7763c814
commit 07cc07597c
3 changed files with 27 additions and 16 deletions

View file

@ -87,6 +87,7 @@ int pw_protocol_native_connect_local_socket(struct pw_protocol_client *client,
size = offsetof(struct sockaddr_un, sun_path) + name_size;
if (connect(fd, (struct sockaddr *) &addr, size) < 0) {
pw_log_debug("connect to '%s' failed: %m", name);
if (errno == ENOENT)
errno = EHOSTDOWN;
res = -errno;