From root@rz-wb.fh-sw.de  Wed Feb  1 10:19:37 1995
Received: from rz-wb.fh-sw.de ([192.129.23.111]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id KAA00209 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 1 Feb 1995 10:19:23 -0800
Received: (from root@localhost) by rz-wb.fh-sw.de (8.6.9/8.6.9) id RAA06949; Wed, 1 Feb 1995 17:45:53 +0100
Message-Id: <199502011645.RAA06949@rz-wb.fh-sw.de>
Date: Wed, 1 Feb 1995 17:45:53 +0100
From: Michael Reifenberger <root@rz-wb.fh-sw.de>
Reply-To: root@rz-wb.fh-sw.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: New PPP has hardcoded config path
X-Send-Pr-Version: 3.2

>Number:         201
>Category:       bin
>Synopsis:       PPP does not find config-files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb  1 10:20:01 1995
>Closed-Date:    Fri Apr 14 23:23:11 PDT 1995
>Last-Modified:  Tue Nov 27 18:41:33 PST 2001
>Originator:     Michael Reifenberger
>Release:        FreeBSD 2.1.0-Development i386
>Organization:
Bye!
....
Michael Reifenberger
>Environment:

	

>Description:

	ppp searches for /etc/ijjppp/ppp.conf

>How-To-Repeat:

	run ppp

>Fix:
	

############# ppp/systems.c ###################
*** systems.c.orig	Wed Feb  1 17:23:58 1995
--- systems.c	Wed Feb  1 17:34:13 1995
***************
*** 26,27 ****
--- 26,28 ----
  #include "ipcp.h"
+ #include <paths.h>
  
***************
*** 94,96 ****
      SetPppId();
!     sprintf(line, "/etc/iijppp/%s", file);
      fp = fopen(line, "r");
--- 95,97 ----
      SetPppId();
!     sprintf(line, "%s%s", _PATH_PPP, file);
      fp = fopen(line, "r");
***************
*** 133,135 ****
      SetPppId();		/* fix from pdp@ark.jr3uom.iijnet.or.jp */
!     sprintf(line, "/etc/iijppp/%s", file);
      fp = fopen(line, "r");
--- 134,136 ----
      SetPppId();		/* fix from pdp@ark.jr3uom.iijnet.or.jp */
!     sprintf(line, "%s%s", _PATH_PPP, file);
      fp = fopen(line, "r");


######### paths.h ##########
*** /usr/src/include/paths.h	Wed Feb  1 04:07:34 1995
--- paths.h	Wed Feb  1 17:34:44 1995
***************
*** 71,72 ****
--- 71,73 ----
  #define	_PATH_YP	"/var/yp/"
+ #define	_PATH_PPP	"/etc/ppp/"
  
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: gpalmer 
State-Changed-When: Fri Apr 14 23:23:11 PDT 1995 
State-Changed-Why:  
Fixed in rev 1.2 of systems.c. 
>Unformatted:



