libftdi Archives

Subject: Re: PATCH: Propagate libusb device node permission errors to application

From: "Ryan C. Underwood" <nemesis-lists@xxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 20 Nov 2012 18:57:23 -0600
On Mon, Nov 19, 2012 at 09:56:07AM +0100, Thomas Jarosch wrote:
> 
> One question: What about using a new, separate error code
> for the "permission denied" situation? Like -12.

How would "permission denied" differ from "unable to open device" in
terms of the underlying usb_open()?  It seems to me that they are
synonymous, except in the case where libusb screwed up internally and
concocted a path to a device node which does not exist.

-- 
Ryan C. Underwood, <nemesis@xxxxxxxxxxxx>

Attachment: signature.asc
Description: Digital signature

Current Thread