Update host.conf every time nsswitch.conf changes, instead of just creating

it if it does not exist.

Submitted by:	Rostislav Krasny <rosti.bsd@gmail.com>
MFC after:	2 weeks
This commit is contained in:
Dag-Erling Smørgrav 2006-05-01 11:02:48 +00:00
parent 14055d2a09
commit f60446ffff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158211

View File

@ -152,7 +152,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