better stale lock recognition
This commit is contained in:
parent
7d73bcb03c
commit
e97219f826
@ -97,7 +97,7 @@ function configtest() {
|
|||||||
# Unaccessible database files.
|
# Unaccessible database files.
|
||||||
slaptestflags=
|
slaptestflags=
|
||||||
for dbdir in `LANG=C egrep '^directory[[:space:]]+[[:print:]]+$' /etc/openldap/slapd.conf | sed s,^directory,,` ; do
|
for dbdir in `LANG=C egrep '^directory[[:space:]]+[[:print:]]+$' /etc/openldap/slapd.conf | sed s,^directory,,` ; do
|
||||||
for file in `find ${dbdir}/ -not -uid $ldapuid -and \( -name "*.dbb" -or -name "*.gdbm" -or -name "*.bdb" -or -name "__db.*" \)` ; do
|
for file in `find ${dbdir}/ -not -uid $ldapuid -and \( -name "*.dbb" -or -name "*.gdbm" -or -name "*.bdb" -or -name "__db.*" -or -name "log.*" -or -name alock \)` ; do
|
||||||
echo -n $"$file is not owned by \"$user\"" ; warning ; echo
|
echo -n $"$file is not owned by \"$user\"" ; warning ; echo
|
||||||
done
|
done
|
||||||
if ! test -s ${dbdir}/id2entry.dbb ; then
|
if ! test -s ${dbdir}/id2entry.dbb ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user