Bug 114866

Summary: Invalid test in startup script
Product: [Fedora] Fedora Reporter: Ulrich Drepper <drepper>
Component: openldapAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.1.25-3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-02-05 00:20:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ulrich Drepper 2004-02-03 18:50:03 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7a)
Gecko/20040118

Description of problem:
The /etc/init.d/ldap script contains currently in line 41:

find ${dbdir}/ -not -uid $ldapuid -and -name "*.dbb" -or -name
"*.gdbm" -or -name "*.bdb"

This is bogus since the precendence groups the ID test with the first
name test.


Version-Release number of selected component (if applicable):
openldap-2.1.25-1

How reproducible:
Always

Steps to Reproduce:
1.make sure /var/lib/ldap contains files XXX.bdb with ID ldap/ldap
2.run script
3.
    

Actual Results:  Warning about files not being owned by ldap

Expected Results:  No warnings

Additional info:

Use

find ${dbdir}/ -not -uid $ldapuid -and \( -name "*.dbb" -or -name
"*.gdbm" -or -name "*.bdb" \)

See the additional \( \)

Comment 1 Nalin Dahyabhai 2004-02-03 19:30:24 UTC
Thanks!