[sane-devel] hp backend fails to detect HP SCSI scanner

Peter Kirchgessner peter at kirchgessner.net
Thu Mar 27 20:25:28 UTC 2008


Allan,

thank's for investigating. Glad to hear that it is not a problem with 
hp-backend and the hp.conf needs not to be changed.

Kind regards

Peter

m. allan noah schrieb:
> ok, i can confirm that this is a bug in sanei_scsi_find_devices(),
> around line 2885:
> 
> if (lx_chk_devicename (number, dev_name, sizeof (dev_name), bus,
> channel, id, lun)
>   && ((*attach) (dev_name) != SANE_STATUS_GOOD))
> {
>   fclose (proc_fp);
>   return;
> }
> 
> if the attach callback returns anything other than SANE_STATUS_GOOD,
> then the function returns, instead of continuing on to look at
> subsequent devices. instead, the fclose and return should be replaced
> with a warning:
> 
> {
>   DBG(1,"sanei_scsi_find_devices: bad attach\n");
> }
> 
> this fixes the problem for me.
> 
> allan

-- 
Peter Kirchgessner
http://www.kirchgessner.net
mailto:peter at kirchgessner.net




More information about the sane-devel mailing list