summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/periodic/security/460.chkportsum18
1 files changed, 9 insertions, 9 deletions
diff --git a/etc/periodic/security/460.chkportsum b/etc/periodic/security/460.chkportsum
index be11684..3a39c84 100644
--- a/etc/periodic/security/460.chkportsum
+++ b/etc/periodic/security/460.chkportsum
@@ -42,20 +42,20 @@ echo 'Checking for ports with mismatched checksums:'
case "${daily_status_security_chkportsum_enable}" in
[Yy][Ee][Ss])
+ set -f
pkg_info -ga 2>/dev/null | \
- while read one two three; do
- case ${one} in
+ while IFS= read -r line; do
+ set -- $line
+ case $1 in
Information)
- case ${two} in
- for) name=${three%%:} ;;
- *) name='??' ;;
+ case $2 in
+ for) name="${3%%:}" ;;
+ *) name='??' ;;
esac
;;
Mismatched|'') ;;
- *)
- if [ -n ${name} ]; then
- echo ${name}: ${one}
- fi
+ *) [ -n "${name}" ] &&
+ echo "${name}: ${line%% fails the original MD5 checksum}"
;;
esac
done
OpenPOWER on IntegriCloud