ports/97671: dovecot fails to reset dlerror before calling dlsym (patch)
Nick Johnson
freebsd at spatula.net
Tue May 23 02:10:27 UTC 2006
>Number: 97671
>Category: ports
>Synopsis: dovecot fails to reset dlerror before calling dlsym (patch)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue May 23 02:10:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Nick Johnson
>Release: FreeBSD 6.1-PRERELEASE i386
>Organization:
morons.org
>Environment:
System: FreeBSD turing.morons.org 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #3: Wed Mar 15 11:22:41 PST 2006 root at turing.morons.org:/usr/obj/usr/src/sys/TURING i386
>Description:
dovecot doesn't reset dlerror before calling dlsym and then checking dlerror to see if the dlsym happened correctly when it
tries to load a plug-in.
>How-To-Repeat:
Use any mail plug-in for imap or pop3.
>Fix:
shar:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# files/patch-module-dir.c
#
echo x - files/patch-module-dir.c
sed 's/^X//' >files/patch-module-dir.c << 'END-of-files/patch-module-dir.c'
X--- src/lib/module-dir.c.orig Mon May 22 18:44:17 2006
X+++ src/lib/module-dir.c Mon May 22 18:45:44 2006
X@@ -24,6 +24,9 @@
X const char *error;
X void *ret;
X
X+ /* reset dlerror */
X+ (void)dlerror();
X+
X /* get our init func */
X ret = dlsym(module->handle, symbol);
X
END-of-files/patch-module-dir.c
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list