diff -u nut-2.4.3/debian/changelog nut-2.4.3/debian/changelog --- nut-2.4.3/debian/changelog +++ nut-2.4.3/debian/changelog @@ -1,3 +1,10 @@ +nut (2.4.3-1ubuntu3.1) lucid-proposed; urgency=low + + * debian/patches/04_nut-small-buffers.dpatch: Fix "libusb_get_report: error sending control message: + Operation not permitted" error on some UPS devices. (LP: #572262) + + -- Chuck Short Mon, 03 May 2010 13:38:37 -0400 + nut (2.4.3-1ubuntu3) lucid; urgency=low * debian/nut.postinst: Revert dropping of --action=change. "add" events must diff -u nut-2.4.3/debian/patches/00list nut-2.4.3/debian/patches/00list --- nut-2.4.3/debian/patches/00list +++ nut-2.4.3/debian/patches/00list @@ -3,0 +4 @@ +04_nut-small-buffers.dpatch only in patch2: unchanged: --- nut-2.4.3.orig/debian/patches/04_nut-small-buffers.dpatch +++ nut-2.4.3/debian/patches/04_nut-small-buffers.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run + +@DPATCH@ +diff -Naurp nut-2.4.3.orig/drivers/libhid.c nut-2.4.3/drivers/libhid.c +--- nut-2.4.3.orig/drivers/libhid.c 2010-02-11 16:43:23.000000000 -0500 ++++ nut-2.4.3/drivers/libhid.c 2010-04-30 09:15:52.675030177 -0400 +@@ -141,7 +141,7 @@ static int refresh_report_buffer(reportb + { + int id = pData->ReportID; + int r; +- unsigned char buf[SMALLBUF]; ++ unsigned char buf[8]; + + if (rbuf->ts[id] + age > time(NULL)) { + /* buffered report is still good; nothing to do */ +@@ -469,7 +469,7 @@ bool_t HIDSetItemValue(hid_dev_handle_t + */ + int HIDGetEvents(hid_dev_handle_t udev, HIDData_t **event, int eventsize) + { +- unsigned char buf[SMALLBUF]; ++ unsigned char buf[8]; + int itemCount = 0; + int buflen, r, i; + HIDData_t *pData;