summaryrefslogtreecommitdiffstats
path: root/ssh.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2005-05-26 04:11:28 +0200
committerDamien Miller <djm@mindrot.org>2005-05-26 04:11:28 +0200
commit538c9b71ecb11669053271ff95d7ce8a6d40294f (patch)
tree009ae7f5dc06b0fd853d45e4a499716063261f74 /ssh.c
parent - djm@cvs.openbsd.org 2005/05/10 10:28:11 (diff)
downloadopenssh-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.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ssh.c b/ssh.c
index 88bb308ae..7754f581c 100644
--- a/ssh.c
+++ b/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>
@@ -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;
}