[Top][All Lists]

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

Wrong order of arguments to HP remsh when using :ext: with username

From: Martin Jost
Subject: Wrong order of arguments to HP remsh when using :ext: with username
Date: Wed, 6 Oct 2004 13:34:54 +0200


I'm using cvs 1.12.9 (also tested 1.11.17 with similar results)
I'm on HPUX (10.20) which uses remsh (not rsh). 
I configured using "--with-rsh=/usr/bin/remsh"

When I do a "cvs update" (which uses 'ext') the command dies with:
rcmd: -l: Unknown host

After some searching I found the following is happening:

my CVS/Root-files contain:

In src/rsh-client.c the command send to RSH is build with '-l'-Option (for 
username) first, then the server name.
Unfortunately remsh on HPUX insists on getting the hostname _first_, then the 
options !
--------------------- man remsh: ---------------
      remsh - execute from a remote shell

      remsh host [-l username] [-n] command

Yes, this might be "the wrong way" - but I'm stuck with this.

So I changed some of the CVS/Root-entries to :ext:tonne:/....
(the user name is the same on both sides)
This works, as the trace shows:

cvs -t update
 -> main loop with CVSROOT=:ext:tonne:/LOG/cvs
 -> Starting server: remsh tonne cvs server 
 -> Sending file `Changes_and_Solutions' to server
cvs update: Updating .
[... works as expected]
 -> main loop with CVSROOT=:ext:address@hidden:/LOG/cvs
 -> Starting server: remsh -l kroot tonne cvs server 
[-l first - HP remsh coughs and dies ...]
rcmd: -l: Unknown host
cvs [update aborted]: end of file from server (consult above messages if any)

This 'once' worked using an older version of CVS.
Is there a way to have it work again ? Do I have to fiddle in some way during 
configure ?

Would it be possible to send the hostname first, then the options, or would 
this break other remsh/rsh ?
(This would be - IHMO anyway - two obvious changes to rsh-client.c)



reply via email to

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