2012-06-20 01:03:24 +08:00
|
|
|
pppd: Disable wtmp support
|
|
|
|
|
|
|
|
Many uClibc based environments lack wtmp and utmp support, therfore remove
|
|
|
|
the code updating the wtmp information.
|
|
|
|
|
|
|
|
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
|
|
|
|
|
2011-03-07 10:09:48 +08:00
|
|
|
--- a/pppd/sys-linux.c
|
|
|
|
+++ b/pppd/sys-linux.c
|
2014-03-20 21:51:36 +08:00
|
|
|
@@ -2259,6 +2259,7 @@ int ppp_available(void)
|
2011-03-07 10:09:48 +08: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
|
2014-03-20 21:51:36 +08:00
|
|
|
@@ -2324,6 +2325,7 @@ void logwtmp (const char *line, const ch
|
2011-03-07 10:09:48 +08:00
|
|
|
close (wtmp);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
+#endif
|
|
|
|
}
|
2014-06-16 04:55:17 +08:00
|
|
|
#endif /* HAVE_LOGWTMP */
|
2011-03-07 10:09:48 +08:00
|
|
|
|