MFC: (1.10) regenerate host.conf every time nsswitch.conf is updated.

This commit is contained in:
des 2006-07-08 13:47:40 +00:00
parent 56d93aecdc
commit 9b07dc305d

View File

@ -148,7 +148,9 @@ nsswitch_start()
# Generate host.conf for compatibility
#
if [ ! -f "/etc/host.conf" ]; then
if [ ! -f "/etc/host.conf" -o \
"/etc/host.conf" -ot "/etc/nsswitch.conf" ]
then
echo 'Generating host.conf.'
generate_host_conf /etc/nsswitch.conf /etc/host.conf
fi