From owner-freebsd-bugs Sun Apr 28 7:50:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 19B5237B41C for ; Sun, 28 Apr 2002 07:50:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3SEo3471457; Sun, 28 Apr 2002 07:50:03 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D5A7837B41D for ; Sun, 28 Apr 2002 07:40:13 -0700 (PDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3SEeDc70433; Sun, 28 Apr 2002 07:40:13 -0700 (PDT) (envelope-from nobody) Message-Id: <200204281440.g3SEeDc70433@freefall.freebsd.org> Date: Sun, 28 Apr 2002 07:40:13 -0700 (PDT) From: Peter Hollaubek To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/37530: /etc/periodic/daily/460.status-mail-rejects does not function if rotated logs are compressed with bzip2 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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