This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Changes in latest snapshot




Shankar Unni wrote:

> Christopher Faylor wrote:
> 
>  > I'm thinking about making binmode the default, too.
> 
> 
> Woo - watch out.
> 
> I use "cvs" (the cygwin port) in :pserver: mode, and recently, when I 
> changed my system mount point to binmode, "cvs login" stopped working. I 
> would do "cvs login", and it would prompt for a password, and store it. 
> Then for any subsequent "cvs" op, it would tell me that the password was 
> invalid, and ask me to log in again.
> 
> The only thing I could do was to go back to a "textmode" system mount.

I use binmode mounts all the time.  cvs login works for me.  Don't blame 
binmode/textmode.

I think you should look at ~/.cvspass and make sure it doesn't have /r/n 
line endings.  Imagine thie:

:pserver:anoncvs@anoncvs.cygnus.com:/cvs/src Ay=0=h<Z \r\n
:pserver:anoncvs@subversions.gnu.org:/cvs A \r\n

Then, you switch to binmode, and do another cvslogin, resulting in this:

:pserver:anoncvs@anoncvs.cygnus.com:/cvs/src Ay=0=h<Z \r\n
:pserver:anoncvs@subversions.gnu.org:/cvs A \r\n
:pserver:anoncvs@sources.redhat.com:/cvs/src Ay=0=h<Z \n   <<<< no \r

The next time the .cvspass file is read in, cvs is confused  by the 
presence of the \r's in the first two lines.  (Which it never saw 
before, thanks to textmode).

Use switch back to binmode, use dos2unix on .cvspass (and .cvsrc for 
that matter), and try again...

--Chuck




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]