OpenBSD: allow opening ugen devices multiple times
authorTheo Buehler <tb@openbsd.org>
Wed, 5 Aug 2020 13:23:45 +0000 (15:23 +0200)
committerChris Dickens <christopher.a.dickens@gmail.com>
Mon, 10 Aug 2020 17:56:29 +0000 (10:56 -0700)
commit94519df868e59a7ea133b12c92823733645f8877
tree8a22e9acf185335988af618de811002ed263fa72
parent7b2578e0bf6bda77915e475a2b66b62542974c90
OpenBSD: allow opening ugen devices multiple times

Fix an OpenBSD backend bug where an existing open file descriptor is
overwritten if a libusb user attempts to open the same ugen(4) device
multiple times. This was observed with sane-backends and broke scanning.

Fix from stsp@openbsd.org

Closes #763

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/openbsd_usb.c
libusb/version_nano.h