summaryrefslogtreecommitdiff
path: root/package/busybox/patches/0001-nameif-fix-parsing-proc-net-dev.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2012-03-20 17:47:39 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2012-03-20 17:47:39 +0100
commit28bfc5688a1a016bef4a001a5bc2a7f7703b1f85 (patch)
treee80d4cd6d25c0f3dccf04f4431d55c0e785ec6a6 /package/busybox/patches/0001-nameif-fix-parsing-proc-net-dev.patch
parent8c07d0bc07ca9cbe373cf41c80d8e10c401aba9e (diff)
allconfig fixes for lemote yeelong
Diffstat (limited to 'package/busybox/patches/0001-nameif-fix-parsing-proc-net-dev.patch')
-rw-r--r--package/busybox/patches/0001-nameif-fix-parsing-proc-net-dev.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/package/busybox/patches/0001-nameif-fix-parsing-proc-net-dev.patch b/package/busybox/patches/0001-nameif-fix-parsing-proc-net-dev.patch
deleted file mode 100644
index 2c5ef6b41..000000000
--- a/package/busybox/patches/0001-nameif-fix-parsing-proc-net-dev.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From ea80044062500c7473cf214010576ea2681d8d2e Mon Sep 17 00:00:00 2001
-From: Phil Sutter <phil.sutter@viprinet.com>
-Date: Thu, 3 Mar 2011 15:13:57 +0100
-Subject: [PATCH 1/2] nameif: fix parsing /proc/net/dev
-
-The parser field lineno is initially zero and incremented upon each
-call to config_read(). So lineno is effectively a "real" line number,
-not an index. Fix the off-by-one bug here, which led to parsing for an
-interface named "face".
-
-Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
----
- networking/nameif.c | 2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/networking/nameif.c b/networking/nameif.c
-index 6cf1c50..8e325e7 100644
---- a/networking/nameif.c
-+++ b/networking/nameif.c
-@@ -174,7 +174,7 @@ int nameif_main(int argc, char **argv)
- #if ENABLE_FEATURE_NAMEIF_EXTENDED
- struct ethtool_drvinfo drvinfo;
- #endif
-- if (parser->lineno < 2)
-+ if (parser->lineno < 3)
- continue; /* Skip the first two lines */
-
- /* Find the current interface name and copy it to ifr.ifr_name */
---
-1.7.3.4
-