info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cvs pserver with too much "--allow-root=..." arguments?!


From: Mark D. Baushke
Subject: Re: cvs pserver with too much "--allow-root=..." arguments?!
Date: Fri, 13 Jan 2006 09:54:42 -0800

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

address@hidden <address@hidden> writes:

> I run 17 cvs repositories by using 17 "--allow-root=CVSROOT" arguments
> in my inetd.conf. Problem: When trying to use more repositories (e.g.
> 21), the additional repositories aren't accessible via pserver.
> 
> Any ideas?

Many versions of inetd.conf have a limit on arguments.
Move your command-line invocation into a shell script

: ------- start example wrapper script -------
#! /bin/sh
exec /usr/local/bin/cvs -f \
  --allow-root=/path/to/repo01 \
  --allow-root=/path/to/repo02 \
  --allow-root=/path/to/repo03 \
  --allow-root=/path/to/repo04 \
  --allow-root=/path/to/repo05 \
  --allow-root=/path/to/repo06 \
  --allow-root=/path/to/repo07 \
  --allow-root=/path/to/repo08 \
  --allow-root=/path/to/repo09 \
  --allow-root=/path/to/repo10 \
  --allow-root=/path/to/repo21 \
  --allow-root=/path/to/repo22 \
  --allow-root=/path/to/repo23 \
  --allow-root=/path/to/repo24 \
  --allow-root=/path/to/repo25 \
  --allow-root=/path/to/repo26 \
  --allow-root=/path/to/repo27 \
  --allow-root=/path/to/repo28 \
  --allow-root=/path/to/repo29 \
  --allow-root=/path/to/repo30 \
 pserver
: ------- end example wrapper script -------

And an inetd.conf line looking like this:

pserver stream tcp nowait root /path/to/wrapper-script wrapper-script

See also
http://ximbiot.com/cvs/manual/cvs-1.11.21/cvs_2.html#SEC30
<<

The `--allow-root' option specifies the allowable CVSROOT
directory. Clients which attempt to use a different CVSROOT
directory will not be allowed to connect. If there is more
than one CVSROOT directory which you want to allow, repeat
the option. (Unfortunately, many versions of inetd have very
small limits on the number of arguments and/or the total
length of the command. The usual solution to this problem is
to have inetd run a shell script which then invokes CVS with
the necessary arguments.)

>>

        -- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFDx+liCg7APGsDnFERAiOzAJ9rSbGzNdo+VhUc446J6wuz2WT92ACdE1XR
ACwy1wBm8T+qHuNJOrfsN/k=
=ra4S
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]