Initialize the non-control endpoint fds in netbsd_open()
authorAymeric Vincent <aymericvincent@free.fr>
Thu, 28 Feb 2019 21:38:21 +0000 (22:38 +0100)
committerNathan Hjelm <hjelmn@me.com>
Fri, 5 Apr 2019 03:19:07 +0000 (21:19 -0600)
commit9501adff2455446aa6ce017525c9d747be67c115
tree493760ed89dfab449fc77489f38b8e7da0995fb4
parenta0b5d27fa7f2bba11965e2b70533f925a5772808
Initialize the non-control endpoint fds in netbsd_open()

Not all users of libusb use libusb_claim_interface(), and in that
case, the NetBSD backend fails to open() the necessary /dev/ugenX.Y
and will try to send ioctl()s to fd 0, which fortunately fails.

This unbreaks e.g. openocd on NetBSD.

Closes #539

Signed-off-by: Nathan Hjelm <hjelmn@me.com>
libusb/os/netbsd_usb.c
libusb/version_nano.h