Subject: Re: Question regarding to set up an AnonCVS mirror
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Viktor Holmlund <viktor@netbsd.se>
List: netbsd-users
Date: 03/12/2007 10:58:08
> I suspect it's because of chroot tricks. anoncvs on anoncvs.netbsd.org
> is most probably chrooted, and it's possible that cvsroot is a link to /
> in the chroot. You're probably getting the /etc of the chroot here.
>
> You can compare this with anoncvs.fr.netbsd.org, where anoncvs also runs
> chrooted; here I suspect you'll get the same result as the openbsd one
> (I'm offline right now so I can't test)
>
> --
> Manuel Bouyer <bouyer@antioche.eu.org>
>      NetBSD: 26 ans d'experience feront toujours la difference
> --
>

Yes, you're getting the /etc of the chrooted user, but you can't download
anything because there's no (RCS) ,v --files there.
What I can see, this is a problem anyway, there's no way to accept users
to checkout/snoope anything apart from the cvsroot.
I came in touch with this when I was using the -u --flag in the cvs
process (cvs -u server) (a similar effect to CVSREADONLYFS env variable),
because I would like to have it in read-only and don't use any locks
(LockDir settings in CVSROOT/config --file).

To solve this little problem, CVS _must_ have the CVSREADONLYFS function.
FreeBSD and OpenBSD have these feature in theirs version of CVS and it's
NOT supported in NetBSD, therefore I was forced to patch it, due to the
checkout problem.

-- 
Viktor Holmlund, NetBSD.se
Key fingerprint = 8EA6 BD87 F7D7 9761 5083  A859 6D46 B771 E6CA 66D7