From owner-cvs-all@FreeBSD.ORG Fri Nov 14 09:52:21 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF1461065670; Fri, 14 Nov 2008 09:52:21 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B04848FC18; Fri, 14 Nov 2008 09:52:21 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mAE9qLYL013345; Fri, 14 Nov 2008 09:52:21 GMT (envelope-from pav@repoman.freebsd.org) Received: (from pav@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mAE9qLmo013344; Fri, 14 Nov 2008 09:52:21 GMT (envelope-from pav) Message-Id: <200811140952.mAE9qLmo013344@repoman.freebsd.org> From: Pav Lucistnik Date: Fri, 14 Nov 2008 09:52:21 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/devel/libusb Makefile ports/devel/libusb/files patch-bsd.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2008 09:52:21 -0000 pav 2008-11-14 09:52:21 UTC FreeBSD ports repository Modified files: devel/libusb Makefile devel/libusb/files patch-bsd.c Log: - Fix a runtime failure. While usb_control_msg is supposed to return the actual number of bytes received, the FreeBSD version returns the receiving buffer size instead. Applications inspecting the returned length for error checking will fail. My patch is based on this excerpt from FreeBSDs /usr/src/sys/dev/usb/usb.h. PR: ports/128549 Submitted by: ladan (maintainer) Revision Changes Path 1.27 +1 -1 ports/devel/libusb/Makefile 1.11 +17 -8 ports/devel/libusb/files/patch-bsd.c