Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 526198

Summary: net-nds/openldap-2.4.40 - /etc/init.d/slapd hangs in checkconfig()
Product: Gentoo Linux Reporter: Hodur <coil93>
Component: [OLD] ServerAssignee: Gentoo LDAP project <ldap-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: checkconfig function fix

Description Hodur 2014-10-21 09:14:11 UTC
/etc/init.d/slapd script freezes while boot and Gentoo boot process is stacked forever.

Reproducible: Always

Steps to Reproduce:
1. emerge =openldap-2.4.40 (ACCEPT_KEYWORDS=~amd64 or ~x86)
2. /etc/init.d/slapd start

Actual Results:  
The script hangs forever. Gentoo does not boot.

Expected Results:  
The script starts normally.

The string in function checkconfig() waits endless.
   
for d in `awk '/^directory/{print $2}'`; do
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-21 09:23:40 UTC
Looks like awk might be waiting for input.
Comment 2 Luca Fulchir 2014-10-22 08:52:52 UTC
Created attachment 387190 [details]
checkconfig function fix

The checkconfig function has 2 BIG bugs:
-the awk is called on nothing, so it waits for input.
-the test after the find command instead of testing if we found a file owned by someone else, actually tests for the opposite (no files owned by someone else)

the attachment is a proposed fix (worksforme).
...why commit something that was never run, even once?
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-10-27 06:04:45 UTC

*** This bug has been marked as a duplicate of bug 525408 ***