summaryrefslogtreecommitdiff
path: root/package/ppp/patches/403-no_wtmp.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-07 02:09:48 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-07 02:09:48 +0000
commitd1081654419ce658e89cc61187e6fe1ed05d14b7 (patch)
tree8406a27fbf74da38b14d4c74ce8992d9623e1d34 /package/ppp/patches/403-no_wtmp.patch
parent01d58dbf4e0e444dff4189e3b743064095fd5ec5 (diff)
ppp: add a few patches to reduce the package size
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25919 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ppp/patches/403-no_wtmp.patch')
-rw-r--r--package/ppp/patches/403-no_wtmp.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/ppp/patches/403-no_wtmp.patch b/package/ppp/patches/403-no_wtmp.patch
new file mode 100644
index 0000000000..c3e9c7b613
--- /dev/null
+++ b/package/ppp/patches/403-no_wtmp.patch
@@ -0,0 +1,18 @@
+--- a/pppd/sys-linux.c
++++ b/pppd/sys-linux.c
+@@ -2237,6 +2237,7 @@ int ppp_available(void)
+
+ void logwtmp (const char *line, const char *name, const char *host)
+ {
++#if 0
+ struct utmp ut, *utp;
+ pid_t mypid = getpid();
+ #if __GLIBC__ < 2
+@@ -2302,6 +2303,7 @@ void logwtmp (const char *line, const ch
+ close (wtmp);
+ }
+ #endif
++#endif
+ }
+
+