From c4426cd3aa5d12ade2c46ed78d31ff787e29acd1 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Mon, 29 Feb 2016 15:03:51 +0900 Subject: [PATCH] Fix __create_client_sock amd socket is moved to /run/amd/ Change-Id: Ief75ef99eb88b86c4ce8452e9758ad9587a96b81 Signed-off-by: Sangyoon Jang --- src/aul_sock.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/aul_sock.c b/src/aul_sock.c index eef3252..4a5107e 100644 --- a/src/aul_sock.c +++ b/src/aul_sock.c @@ -156,8 +156,12 @@ static int __create_client_sock(int pid, uid_t uid) } saddr.sun_family = AF_UNIX; - snprintf(saddr.sun_path, sizeof(saddr.sun_path), - "/run/user/%d/%d", uid, pid); + if (pid == AUL_UTIL_PID) + snprintf(saddr.sun_path, sizeof(saddr.sun_path), + "/run/amd/%d", uid); + else + snprintf(saddr.sun_path, sizeof(saddr.sun_path), + "/run/user/%d/%d", uid, pid); retry_con: ret = __connect_client_sock(fd, (struct sockaddr *)&saddr, sizeof(saddr), 100 * 1000); -- 2.7.4