Summary: | net-nds/openldap-2.4.40-r3 incorrect checkconfig() in /etc/init.d/slapd | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dmitry A. Bakshaev <dab1818> |
Component: | Current packages | Assignee: | Gentoo LDAP project <ldap-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | opensource |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | fix checkconfig() |
Description
Dmitry A. Bakshaev
2015-04-07 07:08:30 UTC
Created attachment 400746 [details, diff]
fix checkconfig()
I can confirm this bug and part of the fix (line 51, DBDIRS assignment). What's interesting is that running the offending line 51 from the init script on a bash terminal it returns the expected results. Only when it runs as an init script it returns the wrong results. LINE 51: DBDIRS=`eval awk '"/^(directory|olcDbDirectory:)/{print \$2}"' $CONF` From bash returns correctly the directory : /var/lib/openldap-data From init script returns the whole conf line: directory /var/lib/openldap-data + 13 Jul 2015; Patrick Lauer <patrick@gentoo.org> +files/slapd-initd-2.4.40-r2, + +openldap-2.4.40-r4.ebuild, -openldap-2.4.40-r3.ebuild: + Fix init script failure #545792 |