Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117290 - courier-authlib: init.d script does not pass LOGGEROPTS from authdaemonrc
Summary: courier-authlib: init.d script does not pass LOGGEROPTS from authdaemonrc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-31 09:37 UTC by ObNox
Modified: 2007-01-16 23:04 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for /etc/init.d/courier-authlib (courier-authlib-initd.patch,182 bytes, patch)
2006-09-16 19:40 UTC, Alan Mosca
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ObNox 2005-12-31 09:37:24 UTC
Hello,

/etc/courier/authlib/authdaemonrc provides a LOGGEROPTS directive which should contain command line options passed to "courrierlogger".

Whatever LOGGEROPTS is set to, nothing is passed to the courrierlogger instance which spaws "authdeamond" and this can be verified with "ps axf".

After investigating a bit, the problem seems to come from /etc/init.d/courier-authlib file. In the function "setauth()", there's a line :
export DEBUG_LOGIN DEFAULTOPTIONS LOGGEROPTS
but I wasn't unable to find any kind of info claiming that the courier executables honor these environment vars.

To workaround the problem, I've modified the following statement:
[...] /usr/bin/env $logger -- -pid="$pidfile" [...]
to:
[...] /usr/bin/env $logger -- ${LOGGEROPTS} -pid="$pidfile" [...]

and now it works as expected.
Comment 1 Alan Mosca 2006-09-16 19:40:17 UTC
Created attachment 97193 [details, diff]
Patch for /etc/init.d/courier-authlib
Comment 2 Charlie Shepherd (RETIRED) gentoo-dev 2007-01-16 23:04:30 UTC
Thanks, fixed in courier-authlib-0.58-r1.