SANE vs USB scanner on 8.0

Hans Petter Selasky hselasky at c2i.net
Thu Oct 29 11:06:01 UTC 2009


On Thursday 29 October 2009 04:55:53 Daniel O'Connor wrote:
> On Wed, 30 Sep 2009, Daniel O'Connor wrote:
> > On Mon, 28 Sep 2009, Hans Petter Selasky wrote:
> > > -       if (sscanf(dev, "libusb:%d:%d", &busnum, &devnum) != 2)
> > > +       if ((sscanf(dev, "libusb:%d:%d", &busnum, &devnum) != 2) &&
> > > +           (sscanf(dev, "libusb:/dev/usb:ugen%d.%d", &busnum,
> > > &devnum) != 2)) {
> > >             DBG (DL_MAJOR_ERROR, "%s: could not parse device
> > > string: %s\n", me, strerror(errno));
> > >             return 0;
> > >
> > > If it works, get the patch sent to the sane developers.
> >
> > Unfortunately no (I reworked it to match the path it uses) and now it
> > segfaults. I rebuilt sane with debugging (is there some way to make
> > libtool not strip on install? It's so tedious manually editing
> > makefiles to remove -s..) as well as libusb.
>
> Have you had a chance to look at this? :)
>
> Thanks.
>
> PS I'm not subscribed to usb@ so perhaps I missed a reply.

No. Please file a bug-report on the sane mailing list.

--HPS


More information about the freebsd-usb mailing list