Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Oct 2013 20:35:35 +0000 (UTC)
From:      Jeremie Le Hen <jlh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r257361 - head/etc/defaults
Message-ID:  <201310292035.r9TKZZ09024648@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <mcdouga9 at egr msu edu>
  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
 	}



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