5d6c26b983c91326237f8a407c0f840e9f398e01
[openwrt/svn-archive/archive.git] / package / busybox / patches / 260-vconfig_proc.patch
1 --- a/networking/vconfig.c
2 +++ b/networking/vconfig.c
3 @@ -116,8 +116,6 @@ static const char name_types[] ALIGN1 =
4 '_', 'N', 'O', '_', 'P', 'A', 'D', 0,
5 };
6
7 -static const char conf_file_name[] ALIGN1 = "/proc/net/vlan/config";
8 -
9 int vconfig_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
10 int vconfig_main(int argc, char **argv)
11 {
12 @@ -129,10 +127,6 @@ int vconfig_main(int argc, char **argv)
13 bb_show_usage();
14 }
15
16 - /* Don't bother closing the filedes. It will be closed on cleanup. */
17 - /* Will die if 802.1q is not present */
18 - xopen(conf_file_name, O_RDONLY);
19 -
20 memset(&ifr, 0, sizeof(ifr));
21
22 ++argv;