| Summary: | ssh tries to use empty $SSH_AUTH_SOCK | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Pierre Ossman <ossman> |
| Component: | ssh | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED FIXED | ||
| Severity: | enhancement | CC: | ahmedsayeed1982, djm, jjelen |
| Priority: | P5 | ||
| Version: | 7.9p1 | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Bug Depends on: | |||
| Bug Blocks: | 2915 | ||
|
Description
Pierre Ossman
2018-11-29 23:50:37 AEDT
The following patch should take care of this: diff --git a/authfd.c b/authfd.c index ecdd869a..972f1b5f 100644 --- a/authfd.c +++ b/authfd.c @@ -94,7 +94,7 @@ ssh_get_authentication_socket(int *fdp) *fdp = -1; authsocket = getenv(SSH_AUTHSOCKET_ENV_NAME); - if (!authsocket) + if (!authsocket || authsocket[0] == '\0') return SSH_ERR_AGENT_NOT_PRESENT; memset(&sunaddr, 0, sizeof(sunaddr)); Fix committed - this will be in OpenSSH 8.0 closing resolved bugs as of 8.6p1 release [spam removed] |