get_media_devices: Only strip usb interface from usb device path
authorHans de Goede <hdegoede@redhat.com>
Sat, 18 Jun 2011 13:38:08 +0000 (15:38 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sat, 18 Jun 2011 13:38:08 +0000 (15:38 +0200)
commitafcdccd2a940061c33c2ab205ee15c255c437189
tree07958ec8cc871ec8ab7bf8dd7c50215f846255a4
parentfc46e5d5197886fd7794f394db208dacee7d4b47
get_media_devices: Only strip usb interface from usb device path

The old code would strip to much, leading to different usb devices on the
same hub getting seen as the same device.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
utils/libmedia_dev/get_media_devices.c