Dr. Werner Fink 2019-11-06 08:51:24 +00:00 committed by Git OBS Bridge
parent 5bdc16771c
commit fcf3a57ccb
2 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
#
# do_mandb. This script was split off cron.daily.
@ -10,7 +10,7 @@
#
# please send bugfixes or comments to feedback@suse.de.
#
# Author: Werner Fink <feedback@suse.de>, 2008
# Author: Werner Fink <feedback@suse.de>, 2008, 2019
# Burchard Steinbild <feedback@suse.de>, 1996
# Florian La Roche <feedback@suse.de>, 1996
#
@ -49,8 +49,8 @@ if test "$REINIT_MANDB" = yes ; then
test -d "${cp}" || continue
db=${cp}/index.db
if test -e ${db} ; then
find $mp -follow -newer $db | read -t 1 line
test $? -eq 0 || continue
path="$(find $mp -follow -newer $db 2>/dev/null)"
test -n "$path" || continue
fi
nice -n 5 ionice -c 3 mandb -qs ${mp} > /dev/null 2>&1 || let errors++
done

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Nov 6 08:48:22 UTC 2019 - Dr. Werner Fink <werner@suse.de>
- Avoid racy bash code on waiting on find in do_mandb (boo#1155879)
-------------------------------------------------------------------
Sun Nov 3 11:37:28 UTC 2019 - Dr. Werner Fink <werner@suse.de>