delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/15/13:53:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3CE2A07E.6040101@ece.gatech.edu>
Date: Wed, 15 May 2002 13:53:02 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: Shankar Unni <shankarunni AT earthlink DOT net>
CC: cygwin AT cygwin DOT com
Subject: Re: Changes in latest snapshot
References: <20020512044943 DOT GA5997 AT redhat DOT com> <3CE28FA4 DOT 6080402 AT earthlink DOT net>


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 AT anoncvs DOT cygnus DOT com:/cvs/src Ay=0=h<Z \r\n
:pserver:anoncvs AT subversions DOT gnu DOT org:/cvs A \r\n

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

:pserver:anoncvs AT anoncvs DOT cygnus DOT com:/cvs/src Ay=0=h<Z \r\n
:pserver:anoncvs AT subversions DOT gnu DOT org:/cvs A \r\n
:pserver:anoncvs AT sources DOT redhat DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019