From mkamm@sbox.tu-graz.ac.at  Sun Feb 11 14:43:48 2001
Return-Path: <mkamm@sbox.tu-graz.ac.at>
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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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
Subject: junk files in ~ncvs/CVSROOT/commitlogs
X-Send-Pr-Version: 3.2

>Number:         25014
>Category:       misc
>Synopsis:       junk files in ~ncvs/CVSROOT/commitlogs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 11 14:50:02 PST 2001
>Closed-Date:    Mon May 28 14:18:21 PDT 2001
>Last-Modified:  Mon May 28 14:20:28 PDT 2001
>Originator:     Martin Kammerhofer
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
Universitt 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:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Mon May 28 14:18:21 PDT 2001 
State-Changed-Why:  
Those files represent commitlogs which were not active during 
the timeperiod they accumulated stuff.  I guess there is technically 
no problems deleting them, but leaving them in place avoid somebody 
wondering if they were lost due to some evil-minded conspiracy 
by evil geniuses wearing totally give-away innocent smiles. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25014 
>Unformatted:
