Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526198 - net-nds/openldap-2.4.40 - /etc/init.d/slapd hangs in checkconfig()
Summary: net-nds/openldap-2.4.40 - /etc/init.d/slapd hangs in checkconfig()
Status: RESOLVED DUPLICATE of bug 525408
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-21 09:14 UTC by Hodur
Modified: 2014-10-27 06:04 UTC (History)
0 users

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


Attachments
checkconfig function fix (checkconfig,835 bytes, text/plain)
2014-10-22 08:52 UTC, Luca Fulchir
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***