MFC: (1.10) regenerate host.conf every time nsswitch.conf is updated.
This commit is contained in:
parent
56d93aecdc
commit
9b07dc305d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user