Bug 128549 - devel/libusb : fix runtime error
Summary: devel/libusb : fix runtime error
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-02 23:20 UTC by Rene Ladan
Modified: 2008-11-14 10:00 UTC (History)
0 users

See Also:


Attachments
file.diff (2.02 KB, patch)
2008-11-02 23:20 UTC, Rene Ladan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rene Ladan 2008-11-02 23:20:01 UTC
From the libusb-devel mailing list:

Fix: Patch attached with submission follows:
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2008-11-14 09:51:02 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 2 dfilter service freebsd_committer freebsd_triage 2008-11-14 09:52:30 UTC
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
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"