#995868 lshw: For some inputs, the product field includes the vendor

Package:
lshw
Source:
lshw
Description:
information about hardware configuration
Submitter:
Vincent Lefevre
Date:
2021-10-07 10:48:03 UTC
Severity:
minor
Tags:
#995868#5
Date:
2021-10-07 10:46:02 UTC
From:
To:
The product field of some inputs now includes the vendor
(lshw needs to be run as root).

For instance:

[...]
                 *-usb:0
                      description: Keyboard
                      product: Apple, Inc Apple Keyboard
                      vendor: Apple, Inc
[...]
                 *-usb:1
                      description: Mouse
                      product: PixArt USB Optical Mouse
                      vendor: PixArt
[...]

This seems to be because files like /sys/class/input/input9/name
includes both. But the previous way of obtaining the information
was better and was yielding more consistent output.

This is a regression introduced by the following upstream commit:

https://github.com/lyonel/lshw/commit/691ed58e2838ca3e50e899f013e259ea84f6bfe9

I've also reported the bug upstream (see Forwarded).