notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
non port: sysutils/nut/files/patch-drivers_libusb.h

Number of commits found: 2

Saturday, 14 Nov 2020
07:58 cy search for other commits by this committer
Properly check USB errors using sys/errno.h.
Original commitRevision:555091 
Friday, 20 Oct 2017
01:09 cy search for other commits by this committer
Nut USB drivers report a "permission error" without visible reasons
for the error even though permissions are OK (or the driver is run
as root).

Nut uses libusb-0.1 API, assuming return cods of < 0. FreeBSD provides
a libusb-0.1 wrapper howerver it uses libusb-1.0 error codes (which
are negative). This set of patches "teaches" nut libusb-1.0 error codes
as produced by FreeBSD.

Network UPS Tools (networkupstools.org) has a project to use libusb-1.0.
This commit is a stopgap fix until our upline implments lubusb-1.0
support in nut.

PR:		223117
Submitted by:	lev
Original commitRevision:452496 

Number of commits found: 2