Displaying 1 result from an estimated 1 matches for "newauthsockdir".
2001 Feb 10
1
Handling of failed connect()s when ssh-agent is busy
...ed in the
future.
With SSH-1.2.27's ssh this happens in authfd.c, line 372; if the connect()
fails (because of ECONNREFUSED), ssh silently gives up trying to talk to the
agent:
sock = socket(AF_UNIX, SOCK_STREAM, 0);
if (sock < 0)
{
error("Socket failed");
if (newauthsockdir != NULL)
{
unlink(authsocket);
chdir("/");
rmdir(newauthsockdir);
xfree(newauthsockdir);
}
xfree(authsocketdir);
return -1;
}
if (connect(sock, (struct sockaddr *)&sunaddr,
AF_UNIX_SIZE(sunaddr))...