Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Aug 2000 06:49:28 +0200 (CEST)
From:      Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   conf/20514: daily periodic: [: /var/log/maillog.10.gz: unexpected operator
Message-ID:  <200008100449.e7A4nS587345@curry.mchp.siemens.de>

next in thread | raw e-mail | index | archive | help

>Number:         20514
>Category:       conf
>Synopsis:       daily periodic: [: /var/log/maillog.10.gz: unexpected operator
>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:   Wed Aug 09 21:50:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Andre Albsmeier
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
>Environment:

4.1-STABLE FreeBSD 4.1-STABLE #3: Wed Aug  9 15:37:46 CEST 2000

>Description:

If you have more than 9 /var/log/maillog.*.gz files, 460.status-mail-rejects
complains:

Checking for rejected mail hosts:
[: /var/log/maillog.10.gz: unexpected operator


>How-To-Repeat:

Make sure you have /var/log/maillog.1.gz and /var/log/maillog.10.gz
and run 460.status-mail-rejects

>Fix:
	
Somwhere near

[ -f /var/log/maillog.$n* ] && zcat -fc /var/log/maillog.$n*

because [ -f /var/log/maillog.$n* ] evaluates to 

[ -f /var/log/maillog.1.gz /var/log/maillog.10.gz ] and /bin/test
doesn't like this.


>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?200008100449.e7A4nS587345>