[exim-dev] [Bug 139] Dynamically loadable lookup modules

Top Pagina
Delete this message
Reply to this message
Auteur: Todd Lyons
Datum:  
Aan: exim-dev
Onderwerp: [exim-dev] [Bug 139] Dynamically loadable lookup modules
------- You are receiving this mail because: -------
You are the QA contact for the bug.

http://bugs.exim.org/show_bug.cgi?id=139

Todd Lyons <tlyons@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tlyons@???





--- Comment #44 from Todd Lyons <tlyons@???> 2011-02-04 23:39:35 ---
(In reply to comment #26)
> (In reply to comment #19)
> > We should probably do with adding the list of loaded lookups to 'exim -bV'
> > output somehow. And it would be nice if we could avoid using RTLD_NOW.
> The cosmetic path called in show_whats_supported() function to
> display list of loadable lookup modules possible.
> --- exim-4.70.lookup/src/exim.c 2009-11-06 13:18:19 +0100

<snip>

Verified that this patch still applies cleanly against exim 4.74 and produces
proper output. Verified that it works properly when no *.so files are in the
lookups directory.

CentOS55[root@ivwm21 ~]# exim -bV
Exim version 4.74 #1 built 04-Feb-2011 23:23:09
Copyright (c) University of Cambridge, 1995 - 2007
Berkeley DB: Sleepycat Software: Berkeley DB 4.3.29: (July 12, 2010)
Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc TCPwrappers OpenSSL
Content_Scanning DKIM Old_Demime Experimental_SPF Experimental_SRS
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz
dnsdb dsearch ldap ldapdn ldapm nis nis0 nisplus passwd sqlite
Lookups (as-module): mysql spf
Authenticators: cram_md5 cyrus_sasl dovecot plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
OpenSSL compile-time version: OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
OpenSSL runtime version: OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
Configuration file is /etc/exim/exim.conf

> +      if ( len >= 3 + 3 && strncmp(name + (len-3), ".so", 3) == 0 ) {


I recall some argument against hard-coding ".so" into it, but wouldn't it be
just as easy to add another code segment (untested, not sure if I got the
position of the 3's and 4's correct):

else if ( len >= 3 + 4 && strncmp(name + (len-3), ".dll", 4) == 0 ) {
// handle the chopping of the filename extension

What other suffixes could exist that exim might try to dynamically load?


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email