diff options
author | 2005-05-10 10:30:43 +0000 | |
---|---|---|
committer | 2005-05-10 10:30:43 +0000 | |
commit | b5a9231e3e53ba80d0136f6773586dc5fcc8b096 (patch) | |
tree | 2dda144e91e2e857d4fba66d23ff2859b4c1d776 /usr.bin/ssh/ssh.c | |
parent | print nice error message for EADDRINUSE as well (diff) | |
download | wireguard-openbsd-b5a9231e3e53ba80d0136f6773586dc5fcc8b096.tar.xz wireguard-openbsd-b5a9231e3e53ba80d0136f6773586dc5fcc8b096.zip |
report real errors on fallback from ControlMaster=no to normal connect
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r-- | usr.bin/ssh/ssh.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index f0d37d01b09..e20aa31a809 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -40,7 +40,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh.c,v 1.238 2005/05/10 10:28:11 djm Exp $"); +RCSID("$OpenBSD: ssh.c,v 1.239 2005/05/10 10:30:43 djm Exp $"); #include <openssl/evp.h> #include <openssl/err.h> @@ -1291,7 +1291,12 @@ control_client(const char *path) fatal("%s socket(): %s", __func__, strerror(errno)); if (connect(sock, (struct sockaddr*)&addr, addr.sun_len) == -1) { - debug("Couldn't connect to %s: %s", path, strerror(errno)); + if (errno == ENOENT) + debug("Control socket \"%.100s\" does not exist", path); + else { + error("Control socket connect(%.100s): %s", path, + strerror(errno)); + } close(sock); return; } |