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:
parent
14055d2a09
commit
f60446ffff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158211
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user