Public bug reported:

Binary package hint: laptop-mode-tools

First,

/usr/share/laptop-mode-tools/modules/ethernet:                if ! [ -z $path 
]; then
/usr/share/laptop-mode-tools/modules/ethernet:                if ! [ -z 
$dev_path ] && [ -f $dev_path/enable ]; then

are confusing without the quotes around the variable given to -z (but it
still works in Bash).

Second, in the ETHERNET devices loop, if $path is empty, previous value
for $dev_path will be used (redundantly operating on the device).

** Affects: laptop-mode-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
ethernet module has a control flow bug
https://bugs.launchpad.net/bugs/662924
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to