Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2016 23:04:53 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r295619 - stable/10/etc/rc.d
Message-ID:  <201602142304.u1EN4rYU030488@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Sun Feb 14 23:04:52 2016
New Revision: 295619
URL: https://svnweb.freebsd.org/changeset/base/295619

Log:
  MFC r295495 - Update leapsecond file in non-chroot environments.
  
  PR:		207095
  Submitted by:	madpilot
  Approved by:	re (marius)

Modified:
  stable/10/etc/rc.d/ntpd
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/etc/rc.d/ntpd
==============================================================================
--- stable/10/etc/rc.d/ntpd	Sun Feb 14 22:37:28 2016	(r295618)
+++ stable/10/etc/rc.d/ntpd	Sun Feb 14 23:04:52 2016	(r295619)
@@ -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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602142304.u1EN4rYU030488>