From nobody Wed Aug 5 08:23:20 1998 Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA00861; Wed, 5 Aug 1998 08:23:20 -0700 (PDT) (envelope-from nobody) Message-Id: <199808051523.IAA00861@hub.freebsd.org> Date: Wed, 5 Aug 1998 08:23:20 -0700 (PDT) From: tinguely@plains.NoDak.edu To: freebsd-gnats-submit@freebsd.org Subject: rshd fails on apps that can have input X-Send-Pr-Version: www-1.0 >Number: 7500 >Category: bin >Synopsis: rshd fails on apps that can have input >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 5 08:30:01 PDT 1998 >Closed-Date: Thu Aug 6 03:02:57 PDT 1998 >Last-Modified: Thu Aug 6 03:04:18 PDT 1998 >Originator: Mark Tinguely >Release: 2.2.7-RELEASE only >Organization: North Dakota State University >Environment: FreeBSD hookie 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0: Mon Jul 27 10:03:08 CDT 1998 root@hookie:/home/tinguely/2.2.7-RELEASE/sys/compile/dec i386 >Description: rsh commands to 2.2.7-RELEASE machines that can handle more input will terminate immediately >How-To-Repeat: rsh 2.2.7HOST /etc/rmt rsh 2.2.7HOST /bin/cat rsh 2.2.7HOST /bin/sh rsh 2.2.7HOST dd ... basically any remote shell that can accept more input. >Fix: the socket filenumber is being lost because it is defined a local*** rshd.c.orig Wed Aug 5 10:15:51 1998 variable to the if statement. below is a patch file: *** rshd.c.orig Wed Aug 5 10:15:51 1998 --- rshd.c Wed Aug 5 10:13:17 1998 *************** *** 304,310 **** (void) alarm(0); if (port != 0) { int lport = IPPORT_RESERVED - 1; ! int s = rresvport(&lport); if (s < 0) { syslog(LOG_ERR, "can't get stderr port: %m"); exit(1); --- 304,310 ---- (void) alarm(0); if (port != 0) { int lport = IPPORT_RESERVED - 1; ! s = rresvport(&lport); if (s < 0) { syslog(LOG_ERR, "can't get stderr port: %m"); exit(1); >Release-Note: >Audit-Trail: From: Andre Albsmeier To: tinguely@plains.NoDak.edu Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: bin/7500: rshd fails on apps that can have input Date: Wed, 5 Aug 1998 21:23:23 +0200 (CEST) > > >Number: 7500 > >Category: bin > >Synopsis: rshd fails on apps that can have input > >Confidential: no > >Severity: non-critical > >Priority: high Can be closed because it's fixed already. -Andre State-Changed-From-To: open->closed State-Changed-By: des State-Changed-When: Thu Aug 6 03:02:57 PDT 1998 State-Changed-Why: Already reported twice, fixed a month ago. Please consult the archives before submitting a PR. >Unformatted: