summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1997-07-19 19:28:35 +0000
committerjdp <jdp@FreeBSD.org>1997-07-19 19:28:35 +0000
commit09c849625ecda66ecf26d50d32d263db99358371 (patch)
tree20dc7502db140c7a269c2482cf9fcf741fa216c5 /security
parent0aa5dd98f084caa36c973db889d58d2d144f04cc (diff)
downloadFreeBSD-ports-09c849625ecda66ecf26d50d32d263db99358371.zip
FreeBSD-ports-09c849625ecda66ecf26d50d32d263db99358371.tar.gz
Prevent this server error message:
fatal: Local: Agent socket bind failed: Address already in use It would happen when the server tried to create the Unix domain socket "/tmp/ssh-username/agent-socket-123", if the file already existed. It could already exist if it happened to be left over from a system crash. This patch unlinks the file before attempting the bind operation. I will send this patch to ssh-bugs@cs.hut.fi too.
Diffstat (limited to 'security')
-rw-r--r--security/ssh/files/patch-ao13
1 files changed, 13 insertions, 0 deletions
diff --git a/security/ssh/files/patch-ao b/security/ssh/files/patch-ao
new file mode 100644
index 0000000..5072ce4
--- /dev/null
+++ b/security/ssh/files/patch-ao
@@ -0,0 +1,13 @@
+--- newchannels.c.orig Tue Apr 22 17:40:11 1997
++++ newchannels.c Sat Jul 19 11:42:06 1997
+@@ -2139,6 +2139,10 @@
+ ssh-agent connections on your system */
+ old_umask = umask(S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
+
++ /* Make sure the socket doesn't already exist, left over from a system
++ crash perhaps. */
++ unlink(channel_forwarded_auth_socket_name);
++
+ if (bind(sock, (struct sockaddr *)&sunaddr, AF_UNIX_SIZE(sunaddr)) < 0)
+ packet_disconnect("Agent socket bind failed: %.100s", strerror(errno));
+
OpenPOWER on IntegriCloud