svn commit: r339995 - head/libexec/rc/rc.d

Dag-Erling Smørgrav des at FreeBSD.org
Thu Nov 1 14:24:13 UTC 2018


Author: des
Date: Thu Nov  1 14:24:12 2018
New Revision: 339995
URL: https://svnweb.freebsd.org/changeset/base/339995

Log:
  Run unbound-anchor when root.key is empty, not just when it is absent.
  
  PR:		232555
  Submitted by:	Ari Suutari <ari at stonepile.fi>
  MFC after:	3 days

Modified:
  head/libexec/rc/rc.d/local_unbound

Modified: head/libexec/rc/rc.d/local_unbound
==============================================================================
--- head/libexec/rc/rc.d/local_unbound	Thu Nov  1 14:00:56 2018	(r339994)
+++ head/libexec/rc/rc.d/local_unbound	Thu Nov  1 14:24:12 2018	(r339995)
@@ -92,7 +92,7 @@ local_unbound_prestart()
 	fi
 
 	# Retrieve DNSSEC root key
-	if [ ! -f ${local_unbound_anchor} ] ; then
+	if [ ! -s ${local_unbound_anchor} ] ; then
 		run_rc_command anchor
 	fi
 }


More information about the svn-src-head mailing list