[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] "cvs login" aborts if ~/.cvspass doesn't exist
From: |
Rodrigo Bernardo Pimentel |
Subject: |
[patch] "cvs login" aborts if ~/.cvspass doesn't exist |
Date: |
Sun, 3 Mar 2002 18:05:53 -0300 |
User-agent: |
Mutt/1.3.27i |
Hi.
I came across the following (I use tramp's cvs repository as an
example, any will do):
dinsdale@glitch:~$ ls ~/.cvspass
ls: /home/dinsdale/.cvspass: No such file or directory
dinsdale@glitch:~$ cvs -d
:pserver:anonymous@cvs.tramp.sourceforge.net:/cvsroot/tramp login
Logging in to :pserver:anonymous@cvs.tramp.sourceforge.net:2401/cvsroot/tramp
CVS password:
cvs login: failed to open /home/dinsdale/.cvspass for reading: No such file or
directory
cvs [login aborted]: fatal error: exiting
dinsdale@glitch:~$ touch ~/.cvspass
dinsdale@glitch:~$ cvs -d
:pserver:anonymous@cvs.tramp.sourceforge.net:/cvsroot/tramp login
Logging in to :pserver:anonymous@cvs.tramp.sourceforge.net:2401/cvsroot/tramp
CVS password:
dinsdale@glitch:~$
cvs login shouldn't *need* read ~/.cvspass . It may try to read it,
to check for duplicate entries or something like that, but an error there
shouldn't be fatal.
Attached is a patch to login.c which deals with that. Please apply
it, or consider some other fix to this. While it's not a very critical bug
(as shown above, I can simply touch(1) the file), it can confuse new users.
Thanks,
rbp
______________________________________________________________________
Rodrigo Bernardo Pimentel <rbp@isnomore.net>
http://www.linuxsp.org.br http://isnomore.net
GPG: <0x81F85A48> 7E62 9CA2 C95B FC86 B334 203E C011 2E4D 81F8 5A48
Computer games don't affect kids. I mean, if Pac-Man affected us as kids,
we'd all be running around in darkened rooms, munching magic pills
and listening to repetitive electronic music.
cvs_login.c.patch
Description: login.c.patch
- [patch] "cvs login" aborts if ~/.cvspass doesn't exist,
Rodrigo Bernardo Pimentel <=