From owner-freebsd-current Sat Sep 9 10:43:38 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id KAA21234 for current-outgoing; Sat, 9 Sep 1995 10:43:38 -0700 Received: from irbs.irbs.com (irbs.com [199.182.75.129]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id KAA21227 for ; Sat, 9 Sep 1995 10:43:35 -0700 Received: (from jc@localhost) by irbs.irbs.com (8.6.12/8.6.6) id NAA14857; Sat, 9 Sep 1995 13:43:31 -0400 From: John Capo Message-Id: <199509091743.NAA14857@irbs.irbs.com> Subject: PPP patch (Gnats still broken) To: freebsd-current@freefall.FreeBSD.org (freebsd-current) Date: Sat, 9 Sep 1995 13:43:31 -0400 (EDT) Cc: freebsd-bugs@freebsd.org X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1074 Sender: current-owner@freebsd.org Precedence: bulk >Submitter-Id: current-users >Originator: John Capo >Organization: IRBS Engineering >Confidential: no >Synopsis: ppp will not read data from telnet connection >Severity: non-critical >Priority: medium >Category: bin >Release: FreeBSD 2.2-CURRENT i386 >Class: sw-bug >Environment: >Description: Will not read data from a telnet connection when running in auto mode due to test for pgroup == tcgetpgrp(0). There is no controlling tty. >How-To-Repeat: Telnet to ppp running in auto mode. >Fix: *** usr.sbin/ppp/main.c.orig Sat Sep 9 13:02:53 1995 --- usr.sbin/ppp/main.c Sat Sep 9 13:03:14 1995 *************** *** 737,743 **** } if ((mode & MODE_INTER) && FD_ISSET(netfd, &rfds) && ! pgroup == tcgetpgrp(0)) { /* something to read from tty */ ReadTty(); } --- 737,743 ---- } if ((mode & MODE_INTER) && FD_ISSET(netfd, &rfds) && ! ((mode & MODE_AUTO) || pgroup == tcgetpgrp(0))) { /* something to read from tty */ ReadTty(); }