View | Details | Raw Unified | Return to bug 1329 | Differences between
and this patch

Collapse All | Expand All

(-)openssh-5.6p1/mux.c.stalemux (-1 / +6 lines)
Lines 1825-1831 muxclient(const char *path) Link Here
1825
		}
1825
		}
1826
		if (errno == ENOENT)
1826
		if (errno == ENOENT)
1827
			debug("Control socket \"%.100s\" does not exist", path);
1827
			debug("Control socket \"%.100s\" does not exist", path);
1828
		else {
1828
		else if (errno == ECONNREFUSED &&
1829
			 (options.control_master == SSHCTL_MASTER_AUTO ||
1830
			  options.control_master == SSHCTL_MASTER_AUTO_ASK)) {
1831
			debug("Removing stale control socket \"%.100s\"", path);
1832
			unlink(path);
1833
		} else {
1829
			error("Control socket connect(%.100s): %s", path,
1834
			error("Control socket connect(%.100s): %s", path,
1830
			    strerror(errno));
1835
			    strerror(errno));
1831
		}
1836
		}

Return to bug 1329