aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-12-23 10:59:57 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-12-23 10:59:57 +0000
commit1c2e2fe906cd5bec1949cbfdee2147367c9504b6 (patch)
tree37ebcb230cd2fa31ed2dc1e11e9f44791f4f2d99 /package
parent28b1b94a65f87fbbc2d48832b545f74aba0256b9 (diff)
downloadupstream-1c2e2fe906cd5bec1949cbfdee2147367c9504b6.tar.gz
upstream-1c2e2fe906cd5bec1949cbfdee2147367c9504b6.tar.bz2
upstream-1c2e2fe906cd5bec1949cbfdee2147367c9504b6.zip
busybox: (vconfig) do not attempt to open /proc/net/vlan/config for no good reason (fixes #12663)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34872 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/busybox/patches/260-vconfig_proc.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/busybox/patches/260-vconfig_proc.patch b/package/busybox/patches/260-vconfig_proc.patch
new file mode 100644
index 0000000000..5d6c26b983
--- /dev/null
+++ b/package/busybox/patches/260-vconfig_proc.patch
@@ -0,0 +1,22 @@
+--- a/networking/vconfig.c
++++ b/networking/vconfig.c
+@@ -116,8 +116,6 @@ static const char name_types[] ALIGN1 =
+ '_', 'N', 'O', '_', 'P', 'A', 'D', 0,
+ };
+
+-static const char conf_file_name[] ALIGN1 = "/proc/net/vlan/config";
+-
+ int vconfig_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
+ int vconfig_main(int argc, char **argv)
+ {
+@@ -129,10 +127,6 @@ int vconfig_main(int argc, char **argv)
+ bb_show_usage();
+ }
+
+- /* Don't bother closing the filedes. It will be closed on cleanup. */
+- /* Will die if 802.1q is not present */
+- xopen(conf_file_name, O_RDONLY);
+-
+ memset(&ifr, 0, sizeof(ifr));
+
+ ++argv;