diff --git a/etc/periodic/daily/460.status-mail-rejects b/etc/periodic/daily/460.status-mail-rejects index 596af492cd6b..34f1df24becc 100755 --- a/etc/periodic/daily/460.status-mail-rejects +++ b/etc/periodic/daily/460.status-mail-rejects @@ -32,7 +32,7 @@ case "$daily_status_mail_rejects_enable" in echo echo Checking for rejected mail hosts: - start=`date -v-1d '+%b %d' | sed 's/0\(.\)$/ \1/'` + start=`date -v-1d '+%b %e'` n=$(($daily_status_mail_rejects_logs - 2)) rc=$({ while [ $n -ge 0 ] diff --git a/etc/periodic/daily/470.status-named b/etc/periodic/daily/470.status-named index daedac037474..5607bfb97bfc 100755 --- a/etc/periodic/daily/470.status-named +++ b/etc/periodic/daily/470.status-named @@ -29,7 +29,7 @@ case "$daily_status_named_enable" in echo echo 'Checking for denied zone transfers (AXFR and IXFR):' - start=`date -v-1d '+%b %d' | sed 's/0\(.\)$/ \1/'` + start=`date -v-1d '+%b %e'` rc=$(catmsgs | fgrep '^'"$start"'.*named\[[[:digit:]]\+\]: denied [AI]XFR from \[.*\]\.[[:digit:]]\+ for' | \ sed -e 's/.*: denied [AI]XFR from \[\(.*\)\]\.[[:digit:]]* for "\(.*\)".*$/\2 from \1/'