2012-06-19 17:03:24 +00:00
|
|
|
pppd: Disable wtmp support
|
|
|
|
|
|
|
|
Many uClibc based environments lack wtmp and utmp support, therfore remove
|
|
|
|
the code updating the wtmp information.
|
|
|
|
|
2016-06-07 09:42:32 +00:00
|
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
2012-06-19 17:03:24 +00:00
|
|
|
|
2011-03-07 02:09:48 +00:00
|
|
|
--- a/pppd/sys-linux.c
|
|
|
|
+++ b/pppd/sys-linux.c
|
2020-01-01 07:23:32 +00:00
|
|
|
@@ -2470,6 +2470,7 @@ int ppp_available(void)
|
2011-03-07 02:09:48 +00:00
|
|
|
|
|
|
|
void logwtmp (const char *line, const char *name, const char *host)
|
|
|
|
{
|
|
|
|
+#if 0
|
|
|
|
struct utmp ut, *utp;
|
|
|
|
pid_t mypid = getpid();
|
|
|
|
#if __GLIBC__ < 2
|
2020-01-01 07:23:32 +00:00
|
|
|
@@ -2535,6 +2536,7 @@ void logwtmp (const char *line, const ch
|
2011-03-07 02:09:48 +00:00
|
|
|
close (wtmp);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
+#endif
|
|
|
|
}
|
2014-06-15 20:55:17 +00:00
|
|
|
#endif /* HAVE_LOGWTMP */
|
2011-03-07 02:09:48 +00:00
|
|
|
|