[sane-devel] Proposed patch for the snapscan semaphore issue

Julien BLACHE jb at jblache.org
Tue Mar 18 21:48:45 UTC 2008


Oliver Schwartz <Oliver.Schwartz at gmx.ch> wrote:

Hi,

> If I read your patch correctly it would also break support for the old
> USB access by device /dev/usb/scanner0 on Linux 2.4.x (or was it
> 2.2.x?) without libusb. Maybe it's a good idea to fall back to the
> old ftok() method if the device name doesn't start with "libusb:".

You're correct, that's why I wrote that everything that isn't libusb
will fail :)

We can still fallback to ftok(), but if don't get a usable key, we're
still dead in the water :)

I'll make a note to update the patch with that and I'll resend.

JB.

-- 
Julien BLACHE                                   <http://www.jblache.org> 
<jb at jblache.org>                                  GPG KeyID 0xF5D65169



More information about the sane-devel mailing list