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

m. allan noah kitno455 at gmail.com
Thu Mar 27 16:31:03 UTC 2008


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
-- 
"The truth is an offense, but not a sin"



More information about the sane-devel mailing list