X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fmain.c;h=4d165732096eb647ca707c091c630c1576cac4af;hp=37aeaeca9629e79d617ad29f2b1c9bb6ae713821;hb=0dff578cb8ad65aa04de28cd18701ca4b01413fa;hpb=a115760c2c03a34dd5aa1ed7274ac49810d7dd45 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);