Hi!
What about just checking the backend name against "dll" while reading
the dll.conf? This avoids that dll segfaults if dll is listed in the
dll.conf.
If someone modifies the Makefile to preload dll or renames the library,
he can't be helped, but this patch avoids that someone adds dll to
dll.conf by accident.
-- jochen
--- backend/dll.c Sun Sep 24 13:21:59 2000
+++ ../sane2/backend/dll.c Mon Oct 16 15:43:06 2000
@@ -203,6 +203,12 @@
DBG(1, "adding backend %s\n", name);
+ if (strcmp(name,"dll") == 0)
+ {
+ DBG( 0, "remove the dll-backend from your dll.conf !!!\n");
+ return SANE_STATUS_GOOD;
+ }
+
for (prev = 0, be = first_backend; be; prev = be, be = be->next)
if (strcmp (be->name, name) == 0)
{
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Mon Oct 16 2000 - 06:44:20 PDT