diff options
author | brian <brian@FreeBSD.org> | 2000-08-10 10:58:44 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-08-10 10:58:44 +0000 |
commit | 20b74ed0748b2e0e2c950afca63598a45305d6e8 (patch) | |
tree | 43539b0e1b0960236abb85c2c95a955c1b221302 | |
parent | 42d0bc5b0dc25b81fae170609019641c5a948d2a (diff) | |
download | FreeBSD-src-20b74ed0748b2e0e2c950afca63598a45305d6e8.zip FreeBSD-src-20b74ed0748b2e0e2c950afca63598a45305d6e8.tar.gz |
Correct dodgy wild card expansion
PR: 20514
-rwxr-xr-x | etc/periodic/daily/460.status-mail-rejects | 8 |
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 |