Bug 18787 - cvspserver does not work with xinetd
Summary: cvspserver does not work with xinetd
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: xinetd   
(Show other bugs)
Version: 7.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Trond Eivind Glomsrxd
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2000-10-10 09:08 UTC by mikak
Modified: 2007-04-18 16:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-10-12 05:37:20 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description mikak 2000-10-10 09:08:34 UTC
After upgrading to RH 7.0 cvspserver stopped working correctly.
The cvs is called with wrong arguments by xinetd so this is due to
changing from inetd to xinetd.

The problematic part seems not only be the conversion from inetd
files to xinetd ones, but rather the way xinetd parses server_args.

/etc/xinetd.d/cvspserver includes:
   server = /usr/bin/cvs
   server_args = cvs --allow-root=/some/dir pserver
I removed 'cvs' from server_args but that not having been helpful I
out that the problem lies probably in the equals sign '='  within
arguments. This
results in cvs being called with erraneous args when connecting to
cvspserver port.

As a workaround I created a shell script that calls cvs with correct
arguments which seems
to work for now.

Comment 1 Tim Waugh 2000-10-10 12:58:32 UTC
If you use:

  server = /usr/bin/cvs
  server_args = --allow-root=/some/dir pserver

and do 'service xinetd reload', do things work? (I.e. had you restarted xinetd
after changing the cvspserver file?)

Comment 2 mikak 2000-10-10 13:24:41 UTC
Of course. Otherwise the workaround script would not have worked either.
In other words: restarting does not help. As I telnetted to port 2401, with
those server_args, the cvs responded with the list of commands i.e. the
'pserver' argument did not seem to make its way through xinetd. 
If --allow-root=... is removed it works as it should, (denying the tried
directory, this, however is not of much use). 

Comment 3 Trond Eivind Glomsrxd 2000-10-10 14:07:55 UTC
How does the entire file in /etc/xinetd.d/ look?

Comment 4 mikak 2000-10-12 05:37:14 UTC
Well, well. Tried it again, and without 'cvs' in server_args it seems to work
fine after all. Obviously as I was trying out various combinations I forgot to
restart xinetd after this very first try and went straight to the other

So, the only bug was that 'cvs' itself was included in server_args which, I
guess, was already reported. Sorry for the inconvenience :-)

Note You need to log in before you can comment on or make changes to this bug.