Update leapsecond file in non-chroot environments.

PR:		207095
Submitted by:	madpilot
MFC after:	3 days
This commit is contained in:
Cy Schubert 2016-02-11 01:16:57 +00:00
parent 78f6ea5440
commit 1041b71deb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295495

View File

@ -28,14 +28,14 @@ ntpd_precmd()
rc_flags="-g $rc_flags"
fi
if [ -z "$ntpd_chrootdir" ]; then
return 0;
fi
if [ ! -f $ntp_db_leapfile ]; then
ntpd_fetch_leapfile
fi
if [ -z "$ntpd_chrootdir" ]; then
return 0;
fi
# If running in a chroot cage, ensure that the appropriate files
# exist inside the cage, as well as helper symlinks into the cage
# from outside.