From owner-freebsd-bugs Mon Apr 29 2:51: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 0BB3A37B41C for ; Mon, 29 Apr 2002 02:50:12 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3T9oCi16500; Mon, 29 Apr 2002 02:50:12 -0700 (PDT) (envelope-from gnats) Date: Mon, 29 Apr 2002 02:50:12 -0700 (PDT) Message-Id: <200204290950.g3T9oCi16500@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Hollaubek Subject: misc/37530: /etc/periodic/daily/460.status-mail-rejects does not function if rotated logs are compressed with bzip2 Reply-To: Peter Hollaubek 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 The following reply was made to PR misc/37530; it has been noted by GNATS. From: Peter Hollaubek To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: misc/37530: /etc/periodic/daily/460.status-mail-rejects does not function if rotated logs are compressed with bzip2 Date: Sun, 28 Apr 2002 07:40:13 -0700 (PDT) >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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message