On Wed, Mar 16, 2011 at 5:02 PM, Cheetah <fast...@gmail.com> wrote:
> On 3/15/2011 6:22, Charles Lepple wrote:
>> On Mar 14, 2011, at 1:20 AM, Cheetah wrote:
>>> If I run it under strace, the ioctls on the /dev/bus/usb file descriptor
>>> preceeding each "operation not permitted" error return 0, not an error code
>>> such as EPERM.
>> That seems strange. Would you please compress and send the strace output
>> (without "-u root")?
> Attached.

Looks like Ubuntu fixed 2.4.3 here:

That was committed to NUT here:


This breaks reading larger reports, so it was reverted:


This patch (committed after 2.6.0 was released) claims to restore
2.4.1 behavior:


Arjen: do we actually have any cases of reports larger than 8 bytes?
If so, should we mark this as a quirk for CyberPower devices? Also, it
seems like we need to distinguish between returning 0 and <0 from the
libusb call. Currently, we are reading errno when a zero-length packet
is being read.

- Charles Lepple

Nut-upsuser mailing list

Reply via email to