Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2002 07:40:13 -0700 (PDT)
From:      Peter Hollaubek <fifteen@inext.hu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/37530: /etc/periodic/daily/460.status-mail-rejects does not function if rotated logs are compressed with bzip2
Message-ID:  <200204281440.g3SEeDc70433@freefall.freebsd.org>

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

>Number:         37530
>Category:       misc
>Synopsis:       /etc/periodic/daily/460.status-mail-rejects does not function if rotated logs are compressed with bzip2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 28 07:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Peter Hollaubek
>Release:        FreeBSD 4.5-STABLE
>Organization:
>Environment:
FreeBSD terminus.inext.hu 4.5-STABLE FreeBSD 4.5-STABLE #3: Mon Apr 22 22:41:13 CEST 2002    root@terminus.inext.hu:/usr/obj/usr/src/sys/FIF  i386

>Description:
If rotated maillog files are compressed with bzip2 (J option in newsyslog.conf), then the status-mail-rejects script won't have any output in periodic daily runs. 
>How-To-Repeat:
Set rotated maillogs to be compressed with bzip2.
>Fix:
--- /etc/periodic/daily/460.status-mail-rejects Tue Sep 18 19:30:42 2001
+++ 460.status-mail-rejects     Sun Apr 28 16:28:03 2002
@@ -43,6 +43,9 @@
                    elif [ -f /var/log/maillog.$n.gz ]
                    then
                        zcat -fc /var/log/maillog.$n.gz
+                   elif [ -f /var/log/maillog.$n.bz2 ]
+                   then
+                       bzcat -fc /var/log/maillog.$n.bz2
                    fi
                    n=$(($n - 1))
                done

>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?200204281440.g3SEeDc70433>