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 authentication level.

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

Submitter:  Stephen Roe <sjroe>
Submitted:  Sun 29 Jan 2012 09:59:49 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  joerg_wunsch Open/Closed:  Closed

Fri 13 Sep 2013 07:57:10 PM UTC, 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
it.

Joerg Wunsch <joerg_wunsch>
Group administrator
Sun 29 Jan 2012 09:59:49 PM UTC, 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by sjroe (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-13 joerg_wunsch StatusNone Done
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
    2012-01-29 sjroe Attached File- Added usb_libusb.patch, #24911

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code