summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/systems.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-03-23 11:43:22 +0000
committerbrian <brian@FreeBSD.org>2001-03-23 11:43:22 +0000
commit13caec0c3d1c54cf40f76cf76029abcba9a66bb5 (patch)
treeb0f2f1f84e592340dac752c6815caabc57501f9f /usr.sbin/ppp/systems.c
parent3f5bbae0c4035dc8b5339fcc37cee61d1ae84e19 (diff)
downloadFreeBSD-src-13caec0c3d1c54cf40f76cf76029abcba9a66bb5.zip
FreeBSD-src-13caec0c3d1c54cf40f76cf76029abcba9a66bb5.tar.gz
Change _PATH_PPP to PPP_CONFDIR and allow it to be overridden at compile time
Diffstat (limited to 'usr.sbin/ppp/systems.c')
-rw-r--r--usr.sbin/ppp/systems.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c
index 1b45853..2dc9c3f 100644
--- a/usr.sbin/ppp/systems.c
+++ b/usr.sbin/ppp/systems.c
@@ -45,7 +45,7 @@ OpenSecret(const char *file)
FILE *fp;
char line[100];
- snprintf(line, sizeof line, "%s/%s", _PATH_PPP, file);
+ snprintf(line, sizeof line, "%s/%s", PPP_CONFDIR, file);
fp = ID0fopen(line, "r");
if (fp == NULL)
log_Printf(LogWARN, "OpenSecret: Can't open %s.\n", line);
@@ -325,7 +325,7 @@ ReadSystem(struct bundle *bundle, const char *name, const char *file,
if (*file == '/')
snprintf(filename, sizeof filename, "%s", file);
else
- snprintf(filename, sizeof filename, "%s/%s", _PATH_PPP, file);
+ snprintf(filename, sizeof filename, "%s/%s", PPP_CONFDIR, file);
fp = ID0fopen(filename, "r");
if (fp == NULL) {
log_Printf(LogDEBUG, "ReadSystem: Can't open %s.\n", filename);
@@ -448,7 +448,7 @@ system_IsValid(const char *name, struct prompt *prompt, int mode)
return "Configuration label not found";
if (rs == -2)
- return _PATH_PPP "/" CONFFILE ": File not found";
+ return PPP_CONFDIR "/" CONFFILE " : File not found";
}
if (userok == -1)
OpenPOWER on IntegriCloud