svn commit: r295495 - head/etc/rc.d

Cy Schubert cy at FreeBSD.org
Thu Feb 11 01:16:59 UTC 2016


Author: cy
Date: Thu Feb 11 01:16:57 2016
New Revision: 295495
URL: https://svnweb.freebsd.org/changeset/base/295495

Log:
  Update leapsecond file in non-chroot environments.
  
  PR:		207095
  Submitted by:	madpilot
  MFC after:	3 days

Modified:
  head/etc/rc.d/ntpd

Modified: head/etc/rc.d/ntpd
==============================================================================
--- head/etc/rc.d/ntpd	Thu Feb 11 00:34:11 2016	(r295494)
+++ head/etc/rc.d/ntpd	Thu Feb 11 01:16:57 2016	(r295495)
@@ -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.


More information about the svn-src-all mailing list