From owner-svn-src-all@FreeBSD.ORG Tue Oct 29 20:35:35 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DFE7C983; Tue, 29 Oct 2013 20:35:35 +0000 (UTC) (envelope-from jlh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 91B6C24AF; Tue, 29 Oct 2013 20:35:35 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9TKZZiE024649; Tue, 29 Oct 2013 20:35:35 GMT (envelope-from jlh@svn.freebsd.org) Received: (from jlh@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9TKZZ09024648; Tue, 29 Oct 2013 20:35:35 GMT (envelope-from jlh@svn.freebsd.org) Message-Id: <201310292035.r9TKZZ09024648@svn.freebsd.org> From: Jeremie Le Hen Date: Tue, 29 Oct 2013 20:35:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r257361 - head/etc/defaults X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Oct 2013 20:35:36 -0000 Author: jlh Date: Tue Oct 29 20:35:35 2013 New Revision: 257361 URL: http://svnweb.freebsd.org/changeset/base/257361 Log: Fix compatibility function for old daily_status_security_${name}_enable variable PR: conf/183137 Reported by: Adam McDougall MFC after: 3 days Modified: head/etc/defaults/periodic.conf Modified: head/etc/defaults/periodic.conf ============================================================================== --- head/etc/defaults/periodic.conf Tue Oct 29 20:35:28 2013 (r257360) +++ head/etc/defaults/periodic.conf Tue Oct 29 20:35:35 2013 (r257361) @@ -319,7 +319,7 @@ if [ -z "${source_periodic_confs_defined security_daily_compat_var() { local var=$1 dailyvar value - dailyvar=daily_status_security${#status_security} + dailyvar=daily_status_security${var#security_status} periodvar=${var%enable}period eval value=\"\$$dailyvar\" [ -z "$value" ] && return @@ -331,7 +331,7 @@ if [ -z "${source_periodic_confs_defined $periodvar=daily ;; *) - $var="$value" + eval $var=\"$value\" ;; esac }