patchAVR Downloader/UploaDEr - Patches: patch #7710, usb_libusb: Check VID/PID before...


You are not allowed to post comments on this tracker with your current authentification level.

patch #7710: usb_libusb: Check VID/PID before opening device

Submitted by:  Stephen Roe <sjroe>
Submitted on:  Sun Jan 29 21:59:49 2012  
Category: NonePriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Open/Closed: Closed

Fri Sep 13 19:57:10 2013, comment #1:

Well, it probably only helps on Linux systems (on FreeBSD, I
don't even see those devices I don't have permissions for),
but swapping the order of actions does not hurt, so I applied

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Sun Jan 29 21:59:49 2012, original submission:

Currently "usbdev_open" attempts to open a device before check that the USB VID/PID combo match the required programmer.

This patch checks the USB VID/PID combo before attempting to open the device. This allows an error message to be generated for when the correct device has been found on the bus but the user can't access it (for example due to permissions).

Stephen Roe <sjroe>


Attached Files
file #24911:  usb_libusb.patch added by sjroe (1001B - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by sjroe (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Sep 13 19:57:10 2013joerg_wunschStatusNone=>Done
      Assigned toNone=>joerg_wunsch
    Sun Jan 29 21:59:49 2012sjroeAttached File-=>Added usb_libusb.patch, #24911

    Back to the top

    Powered by Savane 3.1-cleanup1