Make cvs really ignore a pserver password when the passwd field of the

CVSROOT/passwd file is empty.  A 'cvs login' still seems to be required
since the cvs client doesn't seem to believe it's possible to not need
a password (yet :-).  This is intended for cheap anoncvs use.
This commit is contained in:
Peter Wemm 1998-05-27 16:27:18 +00:00
parent 41f4688892
commit 0e202e40d7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36422

View File

@ -4719,11 +4719,12 @@ check_repository_password (username, password, repository, host_user_ptr)
if (found_it)
{
char *found_password, *host_user_tmp = NULL;
char *linebufp = linebuf;
strtok (linebuf, ":");
found_password = strtok (NULL, ": \n");
strsep (&linebufp, ":");
found_password = strsep (&linebufp, ": \n");
if (found_password)
host_user_tmp = strtok (NULL, ": \n");
host_user_tmp = strsep (&linebufp, ": \n");
if (host_user_tmp == NULL)
host_user_tmp = username;