agent: Log socket path if connecting to it failed

This commit is contained in:
Tobias Brunner
2022-01-20 10:02:54 +01:00
parent 1321fdb8aa
commit 21b2b124a1
@@ -162,8 +162,8 @@ static int open_connection(char *path)
if (connect(s, (struct sockaddr*)&addr, SUN_LEN(&addr)) != 0)
{
DBG1(DBG_LIB, "connecting to ssh-agent socket failed: %s",
strerror(errno));
DBG1(DBG_LIB, "connecting to ssh-agent socket '%s' failed: %s",
addr.sun_path, strerror(errno));
close(s);
return -1;
}