diff --git a/bridge-utils-1.2-params.patch b/bridge-utils-1.2-params.patch new file mode 100644 index 0000000..195b7eb --- /dev/null +++ b/bridge-utils-1.2-params.patch @@ -0,0 +1,13 @@ +diff --git a/libbridge/libbridge_devif.c b/libbridge/libbridge_devif.c +index 1decc28..65ea79a 100644 +--- a/libbridge/libbridge_devif.c ++++ b/libbridge/libbridge_devif.c +@@ -282,7 +282,7 @@ static int br_set(const char *bridge, const char *name, + char path[SYSFS_PATH_MAX]; + FILE *f; + +- snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/%s", bridge, name); ++ snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/bridge/%s", bridge, name); + + f = fopen(path, "w"); + if (f) { diff --git a/bridge-utils.spec b/bridge-utils.spec index f251929..10df962 100644 --- a/bridge-utils.spec +++ b/bridge-utils.spec @@ -1,7 +1,7 @@ Summary: Utilities for configuring the linux ethernet bridge Name: bridge-utils Version: 1.2 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv2+ URL: http://bridge.sourceforge.net/ Group: System Environment/Base @@ -9,6 +9,7 @@ Source: http://dl.sf.net/bridge/bridge-utils-%{version}.tar.gz Patch0: bridge-utils-1.0.4-inc.patch Patch1: bridge-utils-1.2-show-ports.patch Patch2: bridge-utils-1.2-foreach.patch +Patch3: bridge-utils-1.2-params.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: libsysfs-devel autoconf @@ -29,6 +30,7 @@ Install bridge-utils if you want to use the linux ethernet bridge. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build autoconf @@ -49,6 +51,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man8/brctl.8* %changelog +* Thu Jul 03 2008 David Woodhouse 1.2-6 +- Fix location of bridge parameters in sysfs + * Wed Mar 05 2008 David Woodhouse 1.2-5 - Fix handling of bridge named 'bridge' (#436120)