]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/main.c
Merge branch 'pppoatm_wildcard' of https://github.com/sthibaul/ppp
[ppp.git] / pppd / main.c
index 099c0505a4217ff942e75ffe3fb419996a0e7b57..aaaa5c8f8f7bcb8ba91733c2eb35ed7c97a66230 100644 (file)
@@ -293,6 +293,9 @@ main(int argc, char *argv[])
     struct protent *protp;
     char numbuf[16];
 
+    strlcpy(path_ipup, _PATH_IPUP, sizeof(path_ipup));
+    strlcpy(path_ipdown, _PATH_IPDOWN, sizeof(path_ipdown));
+
     link_stats_valid = 0;
     new_phase(PHASE_INITIALIZE);
 
@@ -763,8 +766,7 @@ detach(void)
        /* update pid files if they have been written already */
        if (pidfilename[0])
            create_pidfile(pid);
-       if (linkpidfile[0])
-           create_linkpidfile(pid);
+       create_linkpidfile(pid);
        exit(0);                /* parent dies */
     }
     setsid();