diff options
author | Damien Miller <djm@mindrot.org> | 2005-05-26 04:11:28 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2005-05-26 04:11:28 +0200 |
commit | 538c9b71ecb11669053271ff95d7ce8a6d40294f (patch) | |
tree | 009ae7f5dc06b0fd853d45e4a499716063261f74 /ssh.c | |
parent | - djm@cvs.openbsd.org 2005/05/10 10:28:11 (diff) | |
download | openssh-538c9b71ecb11669053271ff95d7ce8a6d40294f.tar.xz openssh-538c9b71ecb11669053271ff95d7ce8a6d40294f.zip |
- djm@cvs.openbsd.org 2005/05/10 10:30:43
[ssh.c]
report real errors on fallback from ControlMaster=no to normal connect
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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> @@ -1303,7 +1303,12 @@ control_client(const char *path) fatal("%s socket(): %s", __func__, strerror(errno)); if (connect(sock, (struct sockaddr*)&addr, addr_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; } |