diff options
author | jlh <jlh@FreeBSD.org> | 2013-10-29 20:35:35 +0000 |
---|---|---|
committer | jlh <jlh@FreeBSD.org> | 2013-10-29 20:35:35 +0000 |
commit | 2d2ba4044d2ef825ed805e6ffafd821abee25f2c (patch) | |
tree | 4b0c00455c186135af84587bdc2e8c543c98f03d /etc/defaults | |
parent | 171a28589f283ee395ace86b4873725d2c261371 (diff) | |
download | FreeBSD-src-2d2ba4044d2ef825ed805e6ffafd821abee25f2c.zip FreeBSD-src-2d2ba4044d2ef825ed805e6ffafd821abee25f2c.tar.gz |
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
Diffstat (limited to 'etc/defaults')
-rw-r--r-- | etc/defaults/periodic.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/defaults/periodic.conf b/etc/defaults/periodic.conf index 9078577..42ee1bf 100644 --- a/etc/defaults/periodic.conf +++ b/etc/defaults/periodic.conf @@ -319,7 +319,7 @@ if [ -z "${source_periodic_confs_defined}" ]; then 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}" ]; then $periodvar=daily ;; *) - $var="$value" + eval $var=\"$value\" ;; esac } |