bug-cvs
[Top][All Lists]
Advanced

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

Re: acquiring wrong home directory


From: Thomas Wolff
Subject: Re: acquiring wrong home directory
Date: Thu, 29 Oct 2009 11:36:35 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Larry Jones wrote:
address@hidden writes:
Hi, thanks for your response. Here is some diagnostic log:

$ uname -a
CYGWIN_NT-5.1 TOWOLEO 1.7.0(0.214/5/3) 2009-10-03 14:33 i686 Cygwin

address@hidden ~
$ cvs --version

Concurrent Versions System (CVS) 1.12.13 (client/server)
[...]
address@hidden ~
$ echo $HOME
/cygdrive/d/Texte/towo

address@hidden ~
$ cvs login
Logging in to :pserver:address@hidden:2401/cvs/src
CVS password:
cvs login: CVS password file /home/towo/.cvspass does not exist - creating a new file

It seems to be something specific to cygwin -- that works fine on other
Unix and Unix-like systems.  You'll need to find someone with more
intimate knowledge of cygwin and the cygwin port of CVS to figure out
what's going on.  For this specific issue, you can set $CVS_PASSFILE to
work around the problem.
Hi, a tried to check this a little bit.
A quick grep for "getpw" as well as for "HOME" through the sources reveals something different;
in src/sanity.sh, it says explicitly:
# CVS looks at the home dir from getpwuid, not HOME (is that correct
         # behavior?), so this is hard to test and we won't try.
No, this is not correct behaviour.
In a few Changelogs, it seems this has been touched multiple times.
In src/filesubr.c, function get_homedir, using $HOME depends on the flag !server_active - while I didn't dig into this deeper and don't know when exactly this flag is set, it does not look proper and I suspect this to be the cause of the problem
Kind regards,
Thomas


reply via email to

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