From 13caec0c3d1c54cf40f76cf76029abcba9a66bb5 Mon Sep 17 00:00:00 2001 From: brian Date: Fri, 23 Mar 2001 11:43:22 +0000 Subject: Change _PATH_PPP to PPP_CONFDIR and allow it to be overridden at compile time --- usr.sbin/ppp/systems.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ppp/systems.c') 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) -- cgit v1.1