]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - openssh/patches/openssh-5.8p2-remove-stale-control-socket.patch
openssh: Change syntax of prerequires.
[people/arne_f/ipfire-3.x.git] / openssh / patches / openssh-5.8p2-remove-stale-control-socket.patch
CommitLineData
9d8fd3ad
SS
1diff -up openssh-5.8p2/mux.c.remove_stale openssh-5.8p2/mux.c
2--- openssh-5.8p2/mux.c.remove_stale 2011-01-14 02:01:32.000000000 +0100
3+++ openssh-5.8p2/mux.c 2011-06-09 15:27:42.556360291 +0200
4@@ -1867,6 +1867,9 @@ muxclient(const char *path)
5 unlink(path);
6 } else if (errno == ENOENT) {
7 debug("Control socket \"%.100s\" does not exist", path);
8+ } else if (errno == ECONNREFUSED) {
9+ debug("Removing stale control socket \"%.100s\"", path);
10+ unlink(path);
11 } else {
12 error("Control socket connect(%.100s): %s", path,
13 strerror(errno));