Date: Mon, 14 Aug 2000 09:35:46 -0400 (EDT) From: jim@thehousleys.net To: FreeBSD-gnats-submit@freebsd.org Subject: bin/20598: daily/460.... produces error with more than 10 logfiles Message-ID: <200008141335.JAA01539@baby.int.thehousleys.net>
next in thread | raw e-mail | index | archive | help
>Number: 20598
>Category: bin
>Synopsis: daily/460.... produces error with more than 10 logfiles
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Aug 14 06:40:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: James E. Housley
>Release: FreeBSD 4.1-STABLE i386
>Organization:
The Housleys dot Net
>Environment:
FreeBSD 4.1-Stable
>Description:
If there are more than 12?, maillog.10.gz, log files then
/etc/periodic/daily/460.status-mail-rejects produces an error
and doesn't check any of the logfiles for rejects. Below is
the output chunck of a "sh -x 460.status-mail-rejects"
+ [ -f /var/log/maillog.1.gz /var/log/maillog.10.gz /var/log/maillog.11.gz /var/log/maillog.12.gz /var/log/maillog.13.gz /var/log/maillog.14.gz /var/log/maillog.15.gz /var/log/maillog.16.gz /var/log/maillog.17.gz /var/log/maillog.18.gz /var/log/maillog.19.gz ]
[: /var/log/maillog.10.gz: unexpected operator
>How-To-Repeat:
Use the new defaults and have a /var/log/maillog.10.gz when
/etc/periodic/daily/460.mail-status-rejects is run
>Fix:
--- 460.status-mail-rejects Wed Aug 9 14:26:10 2000
+++ 460.status-mail-rejects.new Mon Aug 14 09:30:20 2000
@@ -24,7 +24,7 @@
{
while [ $n -ge 0 ]
do
- [ -f /var/log/maillog.$n* ] && zcat -fc /var/log/maillog.$n*
+ [ -f /var/log/maillog.$n.gz ] && zcat -fc /var/log/maillog.$n.gz
n=$(($n - 1))
done
cat /var/log/maillog
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008141335.JAA01539>
