From 0dff578cb8ad65aa04de28cd18701ca4b01413fa Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Thu, 1 Sep 1994 00:32:24 +0000 Subject: [PATCH] Use _PATH_VARRUN from pathnames.h instead of _PATH_PIDFILE --- pppd/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pppd/main.c b/pppd/main.c index 37aeaec..4d16573 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: main.c,v 1.17 1994/09/01 00:28:14 paulus Exp $"; +static char rcsid[] = "$Id: main.c,v 1.18 1994/09/01 00:32:24 paulus Exp $"; #endif #include @@ -59,8 +59,6 @@ static char rcsid[] = "$Id: main.c,v 1.17 1994/09/01 00:28:14 paulus Exp $"; #define REQ_SYSOPTIONS 1 #endif -static char *pidpath = _PATH_PIDFILE; - /* interface vars */ char ifname[IFNAMSIZ]; /* Interface name */ int ifunit; /* Interface unit number */ @@ -311,7 +309,7 @@ main(argc, argv) (void) sprintf(ifname, "ppp%d", ifunit); /* write pid to file */ - (void) sprintf(pidfilename, "%s/%s.pid", pidpath, ifname); + (void) sprintf(pidfilename, "%s%s.pid", _PATH_VARRUN, ifname); if ((pidfile = fopen(pidfilename, "w")) != NULL) { fprintf(pidfile, "%d\n", pid); (void) fclose(pidfile); -- 2.39.2