2.1.0p1

Markus Friedl markus.friedl at informatik.uni-erlangen.de
Fri May 19 02:44:15 EST 2000


On Thu, May 18, 2000 at 09:16:27AM -0300, Marc G. Fournier wrote:
> 
> Under Solaris 8, at least it doesn't appear to crash anymore, but when I
> connect, I'm getting:
> 
> May 18 09:17:15 iris sshd[15312]: error: fcntl(-1, F_GETFL, 0): Bad file number

this has been fixed. try:

Index: serverloop.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/serverloop.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- serverloop.c	2000/05/17 08:20:15	1.23
+++ serverloop.c	2000/05/18 06:35:57	1.24
@@ -392,7 +392,9 @@
 	/* nonblocking IO */
 	set_nonblock(fdin);
 	set_nonblock(fdout);
-	set_nonblock(fderr);
+	/* we don't have stderr for interactive terminal sessions, see below */
+	if (fderr != -1)
+		set_nonblock(fderr);
 
 	connection_in = packet_get_connection_in();
 	connection_out = packet_get_connection_out();






More information about the openssh-unix-dev mailing list