Hi Jens,
this seems to be specific to that invalid length error.
As I have seen that e.g. access denied or wrong option errors work just the way 
they should.

# insufficient permission
$ /usr/sbin/dmidecode -s baseboard-manufacturer 2>/dev/null
# bad option
$ sudo /usr/sbin/dmidecode -s wrong 2>/dev/null

I found a change upstream that could explain why this fixes it for you:
https://github.com/mirror/dmidecode/commit/74614633b31a2ac01240c72890722a86a3f3fc97

Applying only has slight errors that are easily fixed (5x offset and one
fail that is easy to resolve).

I'll leave it as this for now as I'm in no way a dmidecode expert - I've
only seen it because it was accidentally qemu and found it interesting.
But I'll subscribe myself, if nothing is happening in ~2 weeks please
ping and I'll take another look.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to dmidecode in Ubuntu.
https://bugs.launchpad.net/bugs/1688162

Title:
  dmidecode should print diagnostic messages to stderr

Status in dmidecode package in Ubuntu:
  Triaged

Bug description:
  Ubuntu version of dmidecode breaks several scripts because it prints
  diagnostics messages to stdout instead of stderr.

  E.g.: sudo /bin/ksh93
  # /usr/sbin/dmidecode -s baseboard-manufacturer 2>/dev/null
  Supermicro
  Invalid entry length (16). Fixed up to 11.

  
  The original version (https://git.savannah.nongnu.org/git/dmidecode.git) 
however, works as expected:
  # /tmp/dmidecode -s baseboard-manufacturer 2>/dev/null
  Supermicro

  
  $ /usr/bin/lsb_release -a
  No LSB modules are available.
  Distributor ID:       Ubuntu
  Description:  Ubuntu 16.04.2 LTS
  Release:      16.04
  Codename:     xenial

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dmidecode/+bug/1688162/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to