Ticket #3 (new defect)
libusb:error [__open_sysfs_attr], errno=2
|Reported by:||dsd||Owned by:|
|Milestone:||Component:||libusb-1.0 Linux backend|
On linux-2.6.26 a call to libusb_get_device_list gives the following error
on the console:
libusb:error [open_sysfs_attr] open /sys/bus/usb/devices/4-1/descriptors
and the functions returns -1. The file "descriptors" does not exist in all
I searched through the directory /sys/bus/usb/devices and found out that a
contains the "descriptors" file and other not.
It seems that the new kernel release doesn't create this file for all
devices. I think we
have to fall back to usbfs in order to get the descriptor.
On linux-126.96.36.199 this error doesn't occur.
This is a kernel bug but libusb should be more resilient.