linux_usbfs: Accept sysfs attributes not terminated with newline
authorChris Dickens <christopher.a.dickens@gmail.com>
Mon, 8 Feb 2021 17:27:20 +0000 (09:27 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Mon, 8 Feb 2021 17:27:20 +0000 (09:27 -0800)
commitc486d01297a366aae8dcd3f715d0bfd8b995949b
treea4d85f254a7954420238ae9dd82b33b463d452a2
parent6a3945116a0f3f07ebd4208fdff0914bf1a047fe
linux_usbfs: Accept sysfs attributes not terminated with newline

Benjamin Berg reports that some CI systems that simulate sysfs devices
are causing libusb to report errors because such systems are not
conforming to the sysfs pattern of terminating attribute values with a
newline character. Reduce the severity of encountering such
non-conforming attibute values from an error that prevents enumeration
to a warning message.

Closes #857

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/linux_usbfs.c
libusb/version_nano.h