Only open with O_RDWR if we are actually chaging a report descriptor, other
authormiod <miod@openbsd.org>
Mon, 2 Aug 2010 13:57:32 +0000 (13:57 +0000)
committermiod <miod@openbsd.org>
Mon, 2 Aug 2010 13:57:32 +0000 (13:57 +0000)
commit4fcf210ef75ebe8c1e1e4223cec10a9f6ae4652d
tree4ddcb0eabaec5fb7502a71261e60457e0800326f
parent7a63813aad2443d5d2e1192b5f1a9f89e3c1fcbe
Only open with O_RDWR if we are actually chaging a report descriptor, other
operations only need O_RDONLY.
ok blambert@ deraadt@
usr.bin/usbhidctl/usbhid.c