diff options
author | amurai <amurai@FreeBSD.org> | 1995-02-02 01:54:27 +0000 |
---|---|---|
committer | amurai <amurai@FreeBSD.org> | 1995-02-02 01:54:27 +0000 |
commit | e45d42c64cbf685c189194b874b7c1426b8a1f31 (patch) | |
tree | ed15a388d13007e5e974a0ac06f96dca71ed11d9 /usr.sbin/ppp/systems.c | |
parent | 856e9ec0e9260774215e2f3a2d39015bcbe46251 (diff) | |
download | FreeBSD-src-e45d42c64cbf685c189194b874b7c1426b8a1f31.zip FreeBSD-src-e45d42c64cbf685c189194b874b7c1426b8a1f31.tar.gz |
PPP does not find config files (Wrong path name not a /etc/ppp)
Submitted by: Michael Reifenberger <root@rz-wb.fh-sw.de>
Diffstat (limited to 'usr.sbin/ppp/systems.c')
-rw-r--r-- | usr.sbin/ppp/systems.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c index 3f0ad82..75298c2 100644 --- a/usr.sbin/ppp/systems.c +++ b/usr.sbin/ppp/systems.c @@ -17,13 +17,14 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id:$ + * $Id: systems.c,v 1.1.1.1 1995/01/31 06:29:55 amurai Exp $ * * TODO: */ #include "fsm.h" #include "vars.h" #include "ipcp.h" +#include "pathnames.h" extern void DecodeCommand(); @@ -92,7 +93,7 @@ char *file; } if (fp == NULL) { SetPppId(); - sprintf(line, "/etc/iijppp/%s", file); + sprintf(line, "%s/%s", _PATH_PPP, file); fp = fopen(line, "r"); } if (fp == NULL) { @@ -131,7 +132,7 @@ char *file; } if (fp == NULL) { SetPppId(); /* fix from pdp@ark.jr3uom.iijnet.or.jp */ - sprintf(line, "/etc/iijppp/%s", file); + sprintf(line, "%s/%s", _PATH_PPP, file); fp = fopen(line, "r"); } if (fp == NULL) { |