Blame openssh-4.5p1-controlcleanup.patch
|
Tomáš Mráz |
ca47f6 |
--- openssh-4.5p1/ssh.c~ 2007-03-24 16:25:18.000000000 +0000
|
|
Tomáš Mráz |
ca47f6 |
+++ openssh-4.5p1/ssh.c 2007-03-24 16:31:06.000000000 +0000
|
|
Tomáš Mráz |
ca47f6 |
@@ -1347,7 +1347,11 @@
|
|
Tomáš Mráz |
ca47f6 |
}
|
|
Tomáš Mráz |
ca47f6 |
if (errno == ENOENT)
|
|
Tomáš Mráz |
ca47f6 |
debug("Control socket \"%.100s\" does not exist", path);
|
|
Tomáš Mráz |
ca47f6 |
- else {
|
|
Tomáš Mráz |
ca47f6 |
+ else if (errno == ECONNREFUSED) {
|
|
Tomáš Mráz |
ca47f6 |
+ debug("Control socket connect(%.100s): %s", path,
|
|
Tomáš Mráz |
ca47f6 |
+ strerror(errno));
|
|
Tomáš Mráz |
ca47f6 |
+ unlink(path);
|
|
Tomáš Mráz |
ca47f6 |
+ } else {
|
|
Tomáš Mráz |
ca47f6 |
error("Control socket connect(%.100s): %s", path,
|
|
Tomáš Mráz |
ca47f6 |
strerror(errno));
|
|
Tomáš Mráz |
ca47f6 |
}
|