ppp: update to version 2.4.7.git-2019-10-04
[openwrt/openwrt.git] / package / network / services / ppp / patches / 403-no_wtmp.patch
index 00c3dafdcd113af64fd786203763a66defe680a0..811c5faef8166a9f2dba00367a31eb47c8c934f1 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.
 
 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
 
 --- a/pppd/sys-linux.c
 +++ b/pppd/sys-linux.c
-@@ -2259,6 +2259,7 @@ int ppp_available(void)
+@@ -2271,6 +2271,7 @@ int ppp_available(void)
  
  void logwtmp (const char *line, const char *name, const char *host)
  {
  
  void logwtmp (const char *line, const char *name, const char *host)
  {
@@ -15,7 +15,7 @@ Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
      struct utmp ut, *utp;
      pid_t  mypid = getpid();
  #if __GLIBC__ < 2
      struct utmp ut, *utp;
      pid_t  mypid = getpid();
  #if __GLIBC__ < 2
-@@ -2324,6 +2325,7 @@ void logwtmp (const char *line, const ch
+@@ -2336,6 +2337,7 @@ void logwtmp (const char *line, const ch
        close (wtmp);
      }
  #endif
        close (wtmp);
      }
  #endif