It is indeed a use before assign.

It isn't a problem if this while loop exits a check before the counter,
but if not then the error will trigger.

This is the fix
https://github.com/hreinecke/sg3_utils/commit/b5dadcb663fd9aeacd8f6145bfd6d50df12c0163

Which is in 1.44

And thereby in Focal and later

** Also affects: sg3-utils (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Changed in: sg3-utils (Ubuntu)
       Status: New => Fix Released

** Changed in: sg3-utils (Ubuntu Bionic)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1913729

Title:
  /usr/bin/rescan-scsi-bus.sh: line 245: test: -le: unary operator
  expected

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sg3-utils/+bug/1913729/+subscriptions

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

Reply via email to