gregkh/usbutils — pull request #9 by veltzer (2012-04-21 19:19:57+00:00)
Title: Anothe patch - this time to enable user to specify the usb.ids file on the cmd line

Hello Greg!

This patch added -i, --ids, -z, --idz flags to allow the end user to specify where the

Here is a list of reasons for this:
1. Embedded people sometimes grab a regular distributions lsusb and use it on the embedded target. In that case thess flag would surely come in handy.
2. Developers of usbutils (like me now...:). The ubuntu usb.ids is in a weird place (/var/lib/usbutils/usb.ids) and I would like to compile usbutils "vanilla" to experience it the way a regular user would.
3. People who have usb privileges on their machine but do not have root permission and would like to have a newer version of lsusb. They would need a newer version of usb.ids and the freedom to have it where-ever they would be good.

Please review my patch. I put two file names on the stack there. I don't know if that is acceptable or not. PATH_MAX is 4096 I think so that would be two full pages of stack frame there. If this is not good advise and I will rewrite.

Cheers,
Mark