treewide: replace jow@openwrt.org with jo@mein.io
[openwrt/openwrt.git] / package / network / services / ppp / patches / 403-no_wtmp.patch
1 pppd: Disable wtmp support
2
3 Many uClibc based environments lack wtmp and utmp support, therfore remove
4 the code updating the wtmp information.
5
6 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7
8 --- a/pppd/sys-linux.c
9 +++ b/pppd/sys-linux.c
10 @@ -2267,6 +2267,7 @@ int ppp_available(void)
11
12 void logwtmp (const char *line, const char *name, const char *host)
13 {
14 +#if 0
15 struct utmp ut, *utp;
16 pid_t mypid = getpid();
17 #if __GLIBC__ < 2
18 @@ -2332,6 +2333,7 @@ void logwtmp (const char *line, const ch
19 close (wtmp);
20 }
21 #endif
22 +#endif
23 }
24 #endif /* HAVE_LOGWTMP */
25