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
This commit is contained in:
Jeremie Le Hen 2013-10-29 20:35:35 +00:00
parent 06dce123b6
commit 1f00510804

View File

@ -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
}