Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 1998 17:13:49 +0300 (EEST)
From:      Sergey Shkonda <serg@bcs.zp.ua>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/7429: stdin/stderr are lost in rshd
Message-ID:  <199807291413.RAA01613@bcs3.bcs.zp.ua>

next in thread | raw e-mail | index | archive | help

>Number:         7429
>Category:       bin
>Synopsis:       stdin/stderr are lost in rshd
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 29 07:20:01 PDT 1998
>Last-Modified:
>Originator:     Sergey Shkonda
>Organization:
Business Computer Service
>Release:        FreeBSD 2.2.7-RELEASE i386
>Environment:

Description: 
	stdin/stderr are lost for programs executed via	rshd(8)

How-To-Repeat: 
	rsh machine "cat"
	rsh machine "echo 123 >&2"

Fix: 

--- rshd.c.orig	Wed Jul 29 16:59:30 1998
+++ rshd.c	Wed Jul 29 16:59:14 1998
@@ -304,7 +304,7 @@
 	(void) alarm(0);
 	if (port != 0) {
 		int lport = IPPORT_RESERVED - 1;
-		int s = rresvport(&lport);
+		s = rresvport(&lport);
 		if (s < 0) {
 			syslog(LOG_ERR, "can't get stderr port: %m");
 			exit(1);
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807291413.RAA01613>