kopia lustrzana https://gitlab.com/sane-project/website
123 wiersze
5.0 KiB
HTML
123 wiersze
5.0 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE>sane-devel: make dll.c robust against it being listed in its co</TITLE>
|
||
|
<META NAME="Author" CONTENT="Jochen Eisinger (jochen.eisinger@gno.de)">
|
||
|
<META NAME="Subject" CONTENT="make dll.c robust against it being listed in its configuration file...">
|
||
|
</HEAD>
|
||
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
||
|
<H1>make dll.c robust against it being listed in its configuration file...</H1>
|
||
|
<!-- received="Mon Oct 16 06:42:32 2000" -->
|
||
|
<!-- isoreceived="20001016134232" -->
|
||
|
<!-- sent="Mon, 16 Oct 2000 15:50:32 +0200" -->
|
||
|
<!-- isosent="20001016135032" -->
|
||
|
<!-- name="Jochen Eisinger" -->
|
||
|
<!-- email="jochen.eisinger@gno.de" -->
|
||
|
<!-- subject="make dll.c robust against it being listed in its configuration file..." -->
|
||
|
<!-- id="39EB07A8.17E658E0@gno.de" -->
|
||
|
<STRONG>From:</STRONG> Jochen Eisinger (<A HREF="mailto:jochen.eisinger@gno.de?Subject=Re:%20make%20dll.c%20robust%20against%20it%20being%20listed%20in%20its%20configuration%20file...&In-Reply-To=<39EB07A8.17E658E0@gno.de>"><EM>jochen.eisinger@gno.de</EM></A>)<BR>
|
||
|
<STRONG>Date:</STRONG> Mon Oct 16 2000 - 06:50:32 PDT
|
||
|
<P>
|
||
|
<!-- next="start" -->
|
||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0170.html">mh: "Re: Problems with saned/net backend"</A>
|
||
|
<UL>
|
||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0168.html">Jaeger, Gerhard: "Re: Problems with saned/net backend"</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0188.html">Jochen Eisinger: "Re: make dll.c robust against it being listed in its configuration file..."</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0188.html">Jochen Eisinger: "Re: make dll.c robust against it being listed in its configuration file..."</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0223.html">Petter Reinholdtsen: "Re: make dll.c robust against it being listed in its configuration file..."</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0245.html">Petter Reinholdtsen: "Re: make dll.c robust against it being listed in its configuration file..."</A>
|
||
|
<!-- reply="end" -->
|
||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
||
|
<A HREF="date.html#169">[ date ]</A>
|
||
|
<A HREF="index.html#169">[ thread ]</A>
|
||
|
<A HREF="subject.html#169">[ subject ]</A>
|
||
|
<A HREF="author.html#169">[ author ]</A>
|
||
|
</UL>
|
||
|
<HR NOSHADE><P>
|
||
|
<!-- body="start" -->
|
||
|
<P>
|
||
|
Hi!
|
||
|
<BR>
|
||
|
<P>What about just checking the backend name against "dll" while reading
|
||
|
<BR>
|
||
|
the dll.conf? This avoids that dll segfaults if dll is listed in the
|
||
|
<BR>
|
||
|
dll.conf.
|
||
|
<BR>
|
||
|
<P> If someone modifies the Makefile to preload dll or renames the library,
|
||
|
<BR>
|
||
|
he can't be helped, but this patch avoids that someone adds dll to
|
||
|
<BR>
|
||
|
dll.conf by accident.
|
||
|
<BR>
|
||
|
<P>-- jochen
|
||
|
<BR>
|
||
|
|
||
|
<BR><P>
|
||
|
--- backend/dll.c Sun Sep 24 13:21:59 2000
|
||
|
<BR>
|
||
|
+++ ../sane2/backend/dll.c Mon Oct 16 15:43:06 2000
|
||
|
<BR>
|
||
|
@@ -203,6 +203,12 @@
|
||
|
<BR>
|
||
|
|
||
|
<BR>
|
||
|
DBG(1, "adding backend %s\n", name);
|
||
|
<BR>
|
||
|
|
||
|
<BR>
|
||
|
+ if (strcmp(name,"dll") == 0)
|
||
|
<BR>
|
||
|
+ {
|
||
|
<BR>
|
||
|
+ DBG( 0, "remove the dll-backend from your dll.conf !!!\n");
|
||
|
<BR>
|
||
|
+ return SANE_STATUS_GOOD;
|
||
|
<BR>
|
||
|
+ }
|
||
|
<BR>
|
||
|
+
|
||
|
<BR>
|
||
|
for (prev = 0, be = first_backend; be; prev = be, be = be->next)
|
||
|
<BR>
|
||
|
if (strcmp (be->name, name) == 0)
|
||
|
<BR>
|
||
|
{
|
||
|
<BR>
|
||
|
<P><P><P><PRE>
|
||
|
--
|
||
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
||
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20make%20dll.c%20robust%20against%20it%20being%20listed%20in%20its%20configuration%20file...&In-Reply-To=<39EB07A8.17E658E0@gno.de>">majordomo@mostang.com</A>
|
||
|
</PRE>
|
||
|
<P><!-- body="end" -->
|
||
|
<HR NOSHADE>
|
||
|
<UL>
|
||
|
<!-- next="start" -->
|
||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0170.html">mh: "Re: Problems with saned/net backend"</A>
|
||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0168.html">Jaeger, Gerhard: "Re: Problems with saned/net backend"</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0188.html">Jochen Eisinger: "Re: make dll.c robust against it being listed in its configuration file..."</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0188.html">Jochen Eisinger: "Re: make dll.c robust against it being listed in its configuration file..."</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0223.html">Petter Reinholdtsen: "Re: make dll.c robust against it being listed in its configuration file..."</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0245.html">Petter Reinholdtsen: "Re: make dll.c robust against it being listed in its configuration file..."</A>
|
||
|
<!-- reply="end" -->
|
||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
||
|
<A HREF="date.html#169">[ date ]</A>
|
||
|
<A HREF="index.html#169">[ thread ]</A>
|
||
|
<A HREF="subject.html#169">[ subject ]</A>
|
||
|
<A HREF="author.html#169">[ author ]</A>
|
||
|
</UL>
|
||
|
<!-- trailer="footer" -->
|
||
|
<HR NOSHADE>
|
||
|
<P>
|
||
|
<SMALL>
|
||
|
<EM>
|
||
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
||
|
: <EM>Mon Oct 16 2000 - 06:44:20 PDT</EM>
|
||
|
</EM>
|
||
|
</SMALL>
|
||
|
</BODY>
|
||
|
</HTML>
|