00c3dafdcd113af64fd786203763a66defe680a0
[15.05/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 <jow@openwrt.org>
7
8 --- a/pppd/sys-linux.c
9 +++ b/pppd/sys-linux.c
10 @@ -2259,6 +2259,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 @@ -2324,6 +2325,7 @@ void logwtmp (const char *line, const ch
19         close (wtmp);
20      }
21  #endif
22 +#endif
23  }
24  #endif /* HAVE_LOGWTMP */
25