[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/51754: "usbhidaction -v" reports configuration incorrectly
>Synopsis: "usbhidaction -v" reports configuration incorrectly
>Arrival-Date: Fri Dec 30 11:10:00 +0000 2016
>Originator: Charlotte Koch
NetBSD sakuracity 7.99.52 NetBSD 7.99.52 (CHARLOTTE) #0: Fri Dec 23 12:03:14 PST 2016 charlotte@sakuracity:/home/charlotte/devel/netbsd/sys/arch/amd64/compile/obj/CHARLOTTE amd64
usbhidaction(1) accepts a configuration with the "-c" flag. If you run it with the "-v" flag it basically reports this configuration before running in earnest.
The issue is that if the configuration contains a wildcard character ('*'), then "usbhidaction -v" reports it as a "0", which is incorrect because "0" is actually a totally valid number otherwise.
In other words, "usbhidaction -v" should show a "*" wherever a "*" appears in the configuration, not make up a number.
Simply run usbhidaction in verbose mode with a configuration which features a "*" in place of a numerical value.
A proposed patch is available at https://github.com/christiank/src/commit/86c94d7f62d727e4c78478cf1fc4d026a13feca2
Main Index |
Thread Index |