more detailed error message when SSH_AUTH_SOCK points to a bad location
[?]
Apr 29, 2021, 5:48 PM
ATOFE4ZXBULBMY55LCTFDORZR6AEPXR6RIGDFR4JKPBJ66RCVDFQCDependencies
- [2]
2WEO7OZLVersion updates: getting rid of anyhow + moving to Tokio 1.0 - [3]
7FRJYUI6Reboot because of a bad change - [4]
55M4M5YUFake agent client on Windows
Change contents
- edit in thrussh-keys/src/lib.rs at line 127
#[error("Unable to connect to ssh-agent. The environment variable `SSH_AUTH_SOCK` \was set, but it points to a nonexistent file or directory.")]BadAuthSock, - replacement in thrussh-keys/src/agent/client.rs at line 50
Self::connect_uds(var).awaitmatch Self::connect_uds(var).await {Err(Error::IO(io_err)) if io_err.kind() == std::io::ErrorKind::NotFound => Err(Error::BadAuthSock),owise => owise}