1
0

103-debian_fix_link_pidfile.patch 738 B

1234567891011121314151617181920212223
  1. pppd: Fix creation of linkpidfile
  2. When pppd is run without "nodetach" or with "updetach", the linkpidfile is
  3. never created. The call to create_linkpidfile() is protected by a check for
  4. linkpidfile[0] but this is only filled in when create_linkpidfile() is called.
  5. This patch changes to code to allways uncondiationally call
  6. create_linkpidfile(), it originated from the Debian project.
  7. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
  8. --- a/pppd/main.c
  9. +++ b/pppd/main.c
  10. @@ -773,8 +773,7 @@ detach()
  11. /* update pid files if they have been written already */
  12. if (pidfilename[0])
  13. create_pidfile(pid);
  14. - if (linkpidfile[0])
  15. - create_linkpidfile(pid);
  16. + create_linkpidfile(pid);
  17. exit(0); /* parent dies */
  18. }
  19. setsid();