[Patch hp-backend] Coredump with "scsi HP" in hp.conf

Peter Kirchgessner (peter@kirchgessner.net)
Sun, 04 Jul 1999 18:04:45 +0200

Hi,

here is a patch for the hp-backend. It solves the problem with the line
"scsi HP" in the hp.conf-file, when HP CD-writers are connected to the
system.

--Peter

--- hp-scl.c.orig Tue Mar 9 06:37:17 1999
+++ hp-scl.c Sun Jul 4 17:38:46 1999
@@ -344,6 +344,7 @@
sane_strstatus(status));
sanei_scsi_close(new->fd);
sanei_hp_free(new);
+ return status; /* Fix problem with non-scanner devices */
}

new->bufp = new->buf + HP_SCSI_CMD_LEN;

-- 
Peter Kirchgessner
WWW:    http://www.kirchgessner.net
e-mail: peter@kirchgessner.net

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com