6687803 sshd passes incorrect descriptor to audit_sshd_settid() when spawned from inetd
--- a/usr/src/cmd/ssh/sshd/sshd.c Wed Apr 23 22:53:05 2008 -0700
+++ b/usr/src/cmd/ssh/sshd/sshd.c Thu Apr 24 01:24:21 2008 -0700
@@ -41,7 +41,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -1148,6 +1148,7 @@
sock_in = dup(0);
sock_out = dup(1);
startup_pipe = -1;
+ newsock = sock_in;
/*
* We intentionally do not close the descriptors 0, 1, and 2
* as our code for setting the descriptors won\'t work if