What's New in 2.0.8
Seven bugs fixed — all variants of the same root causes identified during the 2.0.7 audit. Drop-in compatible with 2.0.7.
Fixed
-
weatheralert.sh: Alert audio temp file vulnerable tofs.protected_regular—/tmp/weather_alert_message.ulawfailed silently after first run once theasteriskcron user owned the file. Moved to${BASEDIR}/lib/weatheralert_${MYNODE}.ulaw(same fix class asweatherkeeper.shin 2.0.7). -
kerchunkd.sh: PID/lock/state files in/tmpvulnerable tofs.protected_regular—/tmp/kerchunkd.pid,/tmp/kerchunkd.lock, and/tmp/app_rpt_kerchunk/all moved to${BASEDIR}/lib/per-node paths. -
statekeeper.sh: State file in/tmpvulnerable tofs.protected_regular—/tmp/app_rpt_last_statemoved to${BASEDIR}/lib/last_state_${MYNODE}. -
statekeeper.sh: sed injection via courtesy tone config values — CT config values (e.g.ct/unlinked) containing/corruptedrpt.confsed expressions silently. All CT variable substitutions now wrapped withescape_sed_replacement(). -
statekeeper.sh,weatheralert.sh,asterisk.sh,cmdparser.sh,ctkeeper.sh,ctwriter.sh:set -euo pipefailaftersource common.sh— Errors duringcommon.shloading were silently ignored. Movedset -euo pipefailbeforesourcein all six scripts (same fix asconfigkeeper.shin 2.0.7). -
msgwriter.sh:xargs catsplits on whitespace — Changed toxargs -d '\n' catso sound file paths containing spaces are handled correctly.
Infrastructure
escape_sed_replacement()promoted fromupgrade.shtocommon.shso all scripts have access to it.