<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>98005</bug_id>
          
          <creation_ts>2005-07-05 07:03 0000</creation_ts>
          <short_desc>bridge-utils errors incorrectly when there are no ports on the bridge</short_desc>
          <delta_ts>2005-07-11 22:20:48 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>uberlord@gentoo.org</reporter>
          <assigned_to>robbat2@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2005-07-05 07:03:39 0000</bug_when>
            <thetext>bridge-utils-1.0.4 and 1.0.6 error when there are no ports on the bridge when compiled against libsysfs

Expected results
bridge name     bridge id               STP enabled     interfaces
br0             8000.000000000000       no


Actual Results
bridge name     bridge id               STP enabled     interfaces
br0             8000.000000000000       no               can&apos;t get port info: Function not implemented

Unfortuantely, the error is dumped to stderr - whick sucks when you&apos;re trying to work out the ports on a bridge - or the bridge of a port using userspace tools.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2005-07-05 07:05:14 0000</bug_when>
            <thetext>Created an attachment (id=62666)
Stops brctl from erroring when there are no listed ported in sysfs

applies cleanly to 1.0.6 - may apply to 1.0.4</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2005-07-05 07:06:39 0000</bug_when>
            <thetext>(of course I meant to say that the error is dumped to stdout and not stderr, so
I cannot filter it in bash)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2005-07-05 08:28:40 0000</bug_when>
            <thetext>Created an attachment (id=62678)
return errno instead of -ENOSYS when there are no ports on a bridge
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2005-07-11 20:38:31 0000</bug_when>
            <thetext>in cvs now.
could you please send it upstream as well roy?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2005-07-11 22:20:48 0000</bug_when>
            <thetext>Punted the patch over to their source forge site

http://sourceforge.net/tracker/?group_id=26089&amp;atid=386017</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>62666</attachid>
            <date>2005-07-05 07:05 0000</date>
            <desc>Stops brctl from erroring when there are no listed ported in sysfs</desc>
            <filename>bridge-utils-noports-noerror.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGxpYmJyaWRnZS9saWJicmlkZ2VfaW5pdC5jLm9yaWcJMjAwNS0wNy0wNSAxNDoxNToyMy4w
MDAwMDAwMDAgKzAxMDAKKysrIGxpYmJyaWRnZS9saWJicmlkZ2VfaW5pdC5jCQkyMDA1LTA3LTA1
IDE0OjI4OjMwLjAwMDAwMDAwMCArMDEwMApAQCAtMjMwLDcgKzIzMCw4IEBACiAKIAlsaW5rcyA9
IHN5c2ZzX2dldF9kaXJfbGlua3MoZGlyKTsKIAlpZiAoIWxpbmtzKSB7Ci0JCWVyciA9IC1FTk9T
WVM7CisJCS8qIFdlIG1heSBub3QgaGF2ZSBhbnkgcG9ydHMgYXNzaWduZWQsIHNvIHdlIGRvbid0
IGVycm9yICovCisJCWVyciA9IDA7CiAJCWdvdG8gb3V0OwogCX0KIAo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>62678</attachid>
            <date>2005-07-05 08:28 0000</date>
            <desc>return errno instead of -ENOSYS when there are no ports on a bridge</desc>
            <filename>bridge-utils-noports-noerror.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGxpYmJyaWRnZS9saWJicmlkZ2VfaW5pdC5jLm9yaWcJMjAwNS0wNy0wNSAxNDoxNToyMy4w
MDAwMDAwMDAgKzAxMDAKKysrIGxpYmJyaWRnZS9saWJicmlkZ2VfaW5pdC5jCQkyMDA1LTA3LTA1
IDE0OjI4OjMwLjAwMDAwMDAwMCArMDEwMApAQCAtMjMwLDcgKzIzMCw4IEBACiAKIAlsaW5rcyA9
IHN5c2ZzX2dldF9kaXJfbGlua3MoZGlyKTsKIAlpZiAoIWxpbmtzKSB7Ci0JCWVyciA9IC1FTk9T
WVM7CisJCS8qIFdlIG1heSBub3QgaGF2ZSBhbnkgcG9ydHMgYXNzaWduZWQsIHNvIHdlIGRvbid0
IGVycm9yICovCisJCWVyciA9IGVycm5vOwogCQlnb3RvIG91dDsKIAl9CiAK
</data>        

          </attachment>
    </bug>

</bugzilla>