ppp: update to version 2.4.7.git-2018-06-23
[openwrt/openwrt.git] / package / network / services / ppp / patches / 403-no_wtmp.patch
index 71233200e75c12ed5398d006d56a5ba43aa2d82f..822bd9e3b7ea136fa5bf60864950c196545b6ab3 100644 (file)
@@ -3,11 +3,11 @@ 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>
+Signed-off-by: Jo-Philipp Wich <jo@mein.io>
 
 --- a/pppd/sys-linux.c
 +++ b/pppd/sys-linux.c
-@@ -2254,6 +2254,7 @@ int ppp_available(void)
+@@ -2264,6 +2264,7 @@ int ppp_available(void)
  
  void logwtmp (const char *line, const char *name, const char *host)
  {
@@ -15,11 +15,11 @@ Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
      struct utmp ut, *utp;
      pid_t  mypid = getpid();
  #if __GLIBC__ < 2
-@@ -2319,6 +2320,7 @@ void logwtmp (const char *line, const ch
+@@ -2329,6 +2330,7 @@ void logwtmp (const char *line, const ch
        close (wtmp);
      }
  #endif
 +#endif
  }
+ #endif /* HAVE_LOGWTMP */