rpms/openssh/devel openssh-4.7p1-sshd-v6only.patch,NONE,1.1

Tomas Mraz (tmraz) fedora-extras-commits at redhat.com
Fri Feb 29 16:34:15 UTC 2008


Author: tmraz

Update of /cvs/pkgs/rpms/openssh/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26350

Added Files:
	openssh-4.7p1-sshd-v6only.patch 
Log Message:
* Fri Feb 29 2008 Tomas Mraz <tmraz at redhat.com> - 4.7p1-8
- set FD_CLOEXEC on client socket
- apply real fix for window size problem (#286181) from upstream
- apply fix for the spurious failed bind from upstream
- apply open handle leak in sftp fix from upstream


openssh-4.7p1-sshd-v6only.patch:

--- NEW FILE openssh-4.7p1-sshd-v6only.patch ---
--- sshd.c	2007-06-05 01:22:32.000000000 -0700
+++ sshd.c.new	2007-11-17 00:07:08.000000000 -0800
@@ -971,12 +971,27 @@
 		}
 		/*
 		 * Set socket options.
+		 */
+
+		/*
 		 * Allow local port reuse in TIME_WAIT.
 		 */
 		if (setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR,
 		    &on, sizeof(on)) == -1)
 			error("setsockopt SO_REUSEADDR: %s", strerror(errno));
 
+#ifdef IPV6_V6ONLY
+		if (ai->ai_family == AF_INET6) {
+			/*
+			 * Only communicate in IPv6 over AF_INET6 sockets.
+			 */
+			if (setsockopt(listen_sock, IPPROTO_IPV6, IPV6_V6ONLY,
+			    &on, sizeof(on)) == -1)
+				error("setsockopt IPV6_V6ONLY: %s",
+				    strerror(errno));
+		}
+#endif
+
 		debug("Bind to port %s on %s.", strport, ntop);
 
 		/* Bind the socket to the desired port. */




More information about the fedora-extras-commits mailing list