0002-Use-internal-implementation-of-logwtmp-function.patch 944 B

12345678910111213141516171819202122232425262728293031323334
  1. From 15eee4a0233c0c8f019a9ca4d7d7aa24e8d48daa Mon Sep 17 00:00:00 2001
  2. From: Sergey Popov <pinkbyte@gentoo.org>
  3. Date: Fri, 3 Jan 2020 12:05:29 +0100
  4. Subject: [PATCH 02/14] Use internal implementation of logwtmp function
  5. to prevent utilities from sys-apps/coreutils to not detect authorized users
  6. ---
  7. pppd/sys-linux.c | 2 --
  8. 1 file changed, 2 deletions(-)
  9. diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c
  10. index 85033d9..85b1512 100644
  11. --- a/pppd/sys-linux.c
  12. +++ b/pppd/sys-linux.c
  13. @@ -2472,7 +2472,6 @@ int ppp_available(void)
  14. return ok;
  15. }
  16. -#ifndef HAVE_LOGWTMP
  17. /********************************************************************
  18. *
  19. * Update the wtmp file with the appropriate user name and tty device.
  20. @@ -2546,7 +2545,6 @@ void logwtmp (const char *line, const char *name, const char *host)
  21. }
  22. #endif
  23. }
  24. -#endif /* HAVE_LOGWTMP */
  25. /********************************************************************
  26. *
  27. --
  28. 2.30.0