mirror of
https://github.com/systemd/systemd.git
synced 2025-03-23 10:50:16 +03:00
path_id: allow to be asked about usb_devices not only usb_interfaces
This commit is contained in:
parent
1eb037a7bf
commit
3821339d2d
@ -355,7 +355,9 @@ static struct udev_device *handle_usb(struct udev_device *parent, char **path)
|
||||
const char *port;
|
||||
|
||||
devtype = udev_device_get_devtype(parent);
|
||||
if (devtype == NULL || strcmp(devtype, "usb_interface") != 0)
|
||||
if (devtype == NULL)
|
||||
return parent;
|
||||
if (strcmp(devtype, "usb_interface") != 0 && strcmp(devtype, "usb_device") != 0)
|
||||
return parent;
|
||||
|
||||
str = udev_device_get_sysname(parent);
|
||||
|
Loading…
x
Reference in New Issue
Block a user