X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=extras%2Fpath_id%2Fpath_id.c;h=683f78d26e2d1374f5c95fde3afc1e19ca493240;hb=693b6344e193f5aeca21df5f1c98fd32148006ac;hp=62d26d8c4d5b759b88548050a568e35e7ee69240;hpb=cbfad6af1fdc73c6f3c6b001047ff4a86c8a6efd;p=elogind.git diff --git a/extras/path_id/path_id.c b/extras/path_id/path_id.c index 62d26d8c4..683f78d26 100644 --- a/extras/path_id/path_id.c +++ b/extras/path_id/path_id.c @@ -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);