boo#1155879
OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=106
This commit is contained in:
parent
5bdc16771c
commit
fcf3a57ccb
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# do_mandb. This script was split off cron.daily.
|
# do_mandb. This script was split off cron.daily.
|
||||||
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# please send bugfixes or comments to feedback@suse.de.
|
# 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
|
# Burchard Steinbild <feedback@suse.de>, 1996
|
||||||
# Florian La Roche <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
|
test -d "${cp}" || continue
|
||||||
db=${cp}/index.db
|
db=${cp}/index.db
|
||||||
if test -e ${db} ; then
|
if test -e ${db} ; then
|
||||||
find $mp -follow -newer $db | read -t 1 line
|
path="$(find $mp -follow -newer $db 2>/dev/null)"
|
||||||
test $? -eq 0 || continue
|
test -n "$path" || continue
|
||||||
fi
|
fi
|
||||||
nice -n 5 ionice -c 3 mandb -qs ${mp} > /dev/null 2>&1 || let errors++
|
nice -n 5 ionice -c 3 mandb -qs ${mp} > /dev/null 2>&1 || let errors++
|
||||||
done
|
done
|
||||||
|
@ -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>
|
Sun Nov 3 11:37:28 UTC 2019 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user