Date: Sat, 10 Feb 2001 18:41:03 +0100 (CET) From: mkamm@gmx.net To: FreeBSD-gnats-submit@freebsd.org Subject: misc/25014: junk files in ~ncvs/CVSROOT/commitlogs Message-ID: <200102101741.f1AHf3K11543@homebox.kammerhofer.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102101741.f1AHf3K11543>
