immortalwrt/package/network/services/ppp/patches/403-no_wtmp.patch
CN_SZTL 46c9581a5f
ppp: bump to 2.4.8 (#3644)
- openwrt/openwrt@983605e
pppd: update to 2.4.8

- openwrt/openwrt@3589051
ppp: backport security fixes

- openwrt/openwrt@2c3c83e
ppp: activate PIE ASLR by default

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-03-08 11:55:50 +08:00

26 lines
572 B
Diff

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 <jo@mein.io>
--- a/pppd/sys-linux.c
+++ b/pppd/sys-linux.c
@@ -2470,6 +2470,7 @@ int ppp_available(void)
void logwtmp (const char *line, const char *name, const char *host)
{
+#if 0
struct utmp ut, *utp;
pid_t mypid = getpid();
#if __GLIBC__ < 2
@@ -2535,6 +2536,7 @@ void logwtmp (const char *line, const ch
close (wtmp);
}
#endif
+#endif
}
#endif /* HAVE_LOGWTMP */