403-no_wtmp.patch 577 B

12345678910111213141516171819202122232425
  1. pppd: Disable wtmp support
  2. Many uClibc based environments lack wtmp and utmp support, therfore remove
  3. the code updating the wtmp information.
  4. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
  5. --- a/pppd/sys-linux.c
  6. +++ b/pppd/sys-linux.c
  7. @@ -2267,6 +2267,7 @@ int ppp_available(void)
  8. void logwtmp (const char *line, const char *name, const char *host)
  9. {
  10. +#if 0
  11. struct utmp ut, *utp;
  12. pid_t mypid = getpid();
  13. #if __GLIBC__ < 2
  14. @@ -2332,6 +2333,7 @@ void logwtmp (const char *line, const ch
  15. close (wtmp);
  16. }
  17. #endif
  18. +#endif
  19. }
  20. #endif /* HAVE_LOGWTMP */