From 4a8286113106060b4e34e182578284af7fd4820d Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 14 Feb 2016 23:04:52 +0000 Subject: [PATCH] MFC r295495 - Update leapsecond file in non-chroot environments. PR: 207095 Submitted by: madpilot Approved by: re (marius) git-svn-id: svn://svn.freebsd.org/base/stable/10@295619 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- etc/rc.d/ntpd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/rc.d/ntpd b/etc/rc.d/ntpd index 7f28358d7..fe2fc4ba5 100755 --- a/etc/rc.d/ntpd +++ b/etc/rc.d/ntpd @@ -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. -- 2.45.0