kernel: fq_codel: dont reinit flow state
[openwrt.git] / package / 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 <jow@openwrt.org>
7
8 --- a/pppd/sys-linux.c
9 +++ b/pppd/sys-linux.c
10 @@ -2254,6 +2254,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 @@ -2319,6 +2320,7 @@ void logwtmp (const char *line, const ch
19         close (wtmp);
20      }
21  #endif
22 +#endif
23  }
24  
25