summaryrefslogtreecommitdiff
path: root/user/ppp/03_all_use_internal_logwtmp.patch
blob: d9ecddf25400df8993518b9ac5549532fe53ac58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Use internal implementation of logwtmp function to prevent
utilities from sys-apps/coreutils to not detect authorized users

Patch by: Sergey Popov <pinkbyte@gentoo.org>

--- a/pppd/sys-linux.c
+++ b/pppd/sys-linux.c
@@ -2196,7 +2197,6 @@
     return ok;
 }
 
-#ifndef HAVE_LOGWTMP
 /********************************************************************
  *
  * Update the wtmp file with the appropriate user name and tty device.
@@ -2270,7 +2270,7 @@
     }
 #endif
 }
-#endif /* HAVE_LOGWTMP */
+