summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-08-10 10:58:44 +0000
committerbrian <brian@FreeBSD.org>2000-08-10 10:58:44 +0000
commit20b74ed0748b2e0e2c950afca63598a45305d6e8 (patch)
tree43539b0e1b0960236abb85c2c95a955c1b221302 /etc
parent42d0bc5b0dc25b81fae170609019641c5a948d2a (diff)
downloadFreeBSD-src-20b74ed0748b2e0e2c950afca63598a45305d6e8.zip
FreeBSD-src-20b74ed0748b2e0e2c950afca63598a45305d6e8.tar.gz
Correct dodgy wild card expansion
PR: 20514
Diffstat (limited to 'etc')
-rwxr-xr-xetc/periodic/daily/460.status-mail-rejects8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/periodic/daily/460.status-mail-rejects b/etc/periodic/daily/460.status-mail-rejects
index cfe4213..7d6ef1a 100755
--- a/etc/periodic/daily/460.status-mail-rejects
+++ b/etc/periodic/daily/460.status-mail-rejects
@@ -24,7 +24,13 @@ case "$daily_status_mail_rejects_enable" in
{
while [ $n -ge 0 ]
do
- [ -f /var/log/maillog.$n* ] && zcat -fc /var/log/maillog.$n*
+ if [ -f /var/log/maillog.$n ]
+ then
+ cat /var/log/maillog.$n
+ elif [ -f /var/log/maillog.$n.gz ]
+ then
+ zcat -fc /var/log/maillog.$n.gz
+ fi
n=$(($n - 1))
done
cat /var/log/maillog
OpenPOWER on IntegriCloud