Menu

#1 "brctl show" error when no ports are on bridge

open
nobody
None
5
2012-09-14
2005-07-12
Roy Marples
No

When bridge utils is compiled with sysfs support, an
error is shown when "btcrl show" is run when there are
no ports assigned to a bridge.

The attached patch fixes this behaviour by changing err
from -ENOSYS to errno so that the last error (if any)
is reported instead of assuming that no links means
there is an error.

I don't know if we should only set err if error !=0 though

Discussion

  • Roy Marples

    Roy Marples - 2005-07-12

    Patch to fix error when no ports on bridge

     
  • Nobody/Anonymous

    Logged In: NO

    jj

     

Log in to post a comment.