svn commit: r257361 - head/etc/defaults
Jeremie Le Hen
jlh at FreeBSD.org
Tue Oct 29 20:35:36 UTC 2013
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
}
More information about the svn-src-head
mailing list