From owner-freebsd-bugs Sun Feb 11 14:50:24 2001 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 7887637B65D for ; Sun, 11 Feb 2001 14:50:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1BMo2a56741; Sun, 11 Feb 2001 14:50:02 -0800 (PST) (envelope-from gnats) Received: from ns1.tu-graz.ac.at (ns1.tu-graz.ac.at [129.27.2.3]) by hub.freebsd.org (Postfix) with ESMTP id 61D5C37B401 for ; Sun, 11 Feb 2001 14:43:47 -0800 (PST) Received: from homebox.kammerhofer.org (isdn091.tu-graz.ac.at [129.27.240.91]) by ns1.tu-graz.ac.at (8.9.3/8.9.3) with ESMTP id XAA07817 for ; Sun, 11 Feb 2001 23:43:43 +0100 (MET) Received: (from mkamm@localhost) by homebox.kammerhofer.org (8.11.2/8.11.2) id f1AHf3K11543; Sat, 10 Feb 2001 18:41:03 +0100 (CET) (envelope-from mkamm) Message-Id: <200102101741.f1AHf3K11543@homebox.kammerhofer.org> Date: Sat, 10 Feb 2001 18:41:03 +0100 (CET) From: mkamm@gmx.net Reply-To: mkamm@gmx.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/25014: junk files in ~ncvs/CVSROOT/commitlogs Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 25014 >Category: misc >Synopsis: junk files in ~ncvs/CVSROOT/commitlogs >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Feb 11 14:50:02 PST 2001 >Closed-Date: >Last-Modified: >Originator: Martin Kammerhofer >Release: FreeBSD 4.2-STABLE i386 >Organization: Universität Graz >Environment: >Description: I am cvsupping the FreeBSD repository. As part of the src-base collection I get the commit logfiles in CVSROOT/commitlogs. There are some 30 files without any content, just gzipped empty files. >How-To-Repeat: zmore /home/ncvs/CVSROOT/commitlogs/distrib.*.gz >Fix: Run the following script: <----------------------------------------------------------------- #!/bin/sh find /home/ncvs/CVSROOT/commitlogs/*.gz -size 1 | while read f; do test -z "$(gzcat $f)" && rm -v $f done <----------------------------------------------------------------- Apply the following patch: <----------------------------------------------------------------- --- /home/ncvs/CVSROOT/rotate.sh Sat Sep 21 16:02:01 1996 +++ ./rotate.sh Sat Feb 10 18:08:49 2001 @@ -11,6 +11,10 @@ mv $file $file.$NOW touch $file chown ncvs:ncvs $file - gzip $file.$NOW - chown ncvs:ncvs $file.$NOW.gz + if [ -s $file.$NOW ]; then + gzip $file.$NOW + chown ncvs:ncvs $file.$NOW.gz + else + rm $file.$NOW + fi done <----------------------------------------------------------------- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message