From owner-freebsd-bugs Thu Nov 7 15:00:04 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA25843 for bugs-outgoing; Thu, 7 Nov 1996 15:00:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA25833; Thu, 7 Nov 1996 15:00:02 -0800 (PST) Resent-Date: Thu, 7 Nov 1996 15:00:02 -0800 (PST) Resent-Message-Id: <199611072300.PAA25833@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, gurney_j@efn.org Received: from mail.webspan.net (mail.webspan.net [206.154.70.7]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA25708 for ; Thu, 7 Nov 1996 14:58:04 -0800 (PST) Received: from orion.webspan.net (orion.webspan.net [206.154.70.5]) by mail.webspan.net (8.7.5/8.7.3) with ESMTP id RAA12886 for ; Thu, 7 Nov 1996 17:56:01 -0500 (EST) Received: from orion.webspan.net (localhost [127.0.0.1]) by orion.webspan.net (8.7.5/8.7.3) with ESMTP id RAA11175 for ; Thu, 7 Nov 1996 17:56:00 -0500 (EST) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.18]) by mail.webspan.net (8.7.5/8.7.3) with ESMTP id RAA11581 for ; Thu, 7 Nov 1996 17:43:36 -0500 (EST) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA22563 for ; Thu, 7 Nov 1996 14:42:06 -0800 (PST) Received: from nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id IAA17060 for ; Thu, 7 Nov 1996 08:17:24 -0800 (PST) Received: (from jmg@localhost) by nike.efn.org (8.7.5/8.7.3) id IAA07517; Thu, 7 Nov 1996 08:17:20 -0800 (PST) Message-Id: <199611071617.IAA07517@nike.efn.org> Date: Thu, 7 Nov 1996 08:17:20 -0800 (PST) From: John-Mark Gurney Reply-To: gurney_j@efn.org To: FreeBSD-gnats@freefall.FreeBSD.org X-Send-Pr-Version: 3.2 Subject: bin/1973: pppd uses /etc/ppp/options.tty after command line args Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 1973 >Category: bin >Synopsis: pppd uses /etc/ppp/options.tty after command line args >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 7 15:00:01 PST 1996 >Last-Modified: >Originator: John-Mark Gurney >Organization: Cu Networking >Release: FreeBSD 2.2-960801-SNAP i386 >Environment: a ppp server that is doing "dynamic" ip via /etc/ppp/options.tty files and wants to allow some others to connect a network overriding the ip address in options.tty file on the command line... machine is a cut down termserver >Description: when you try to override options that are specified in options. from the command line you find you can't... >How-To-Repeat: create a /etc/ppp/options. file with something like :1.2.3.4 and then run: pppd :1.2.3.5 you will find that when you connect you will end up with 1.2.3.4 as your ip address instead of 1.2.3.5... which you would expect... >Fix: apply this patch... (basicly swap reading sequence of options: Index: main.c =================================================================== RCS file: /usr/cvs/src/usr.sbin/pppd/main.c,v retrieving revision 1.5 diff -c -r1.5 main.c *** main.c 1995/10/31 21:21:26 1.5 --- main.c 1996/11/07 10:19:59 *************** *** 191,198 **** if (!options_from_file(_PATH_SYSOPTIONS, REQ_SYSOPTIONS, 0) || !options_from_user() || ! !parse_args(argc-1, argv+1) || ! !options_for_tty()) die(1); check_auth_options(); setipdefault(); --- 191,198 ---- if (!options_from_file(_PATH_SYSOPTIONS, REQ_SYSOPTIONS, 0) || !options_from_user() || ! !options_for_tty() || ! !parse_args(argc-1, argv+1)) die(1); check_auth_options(); setipdefault(); >Audit-Trail: >Unformatted: