summaryrefslogtreecommitdiffstats
path: root/contrib/cvs
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-05-27 16:27:18 +0000
committerpeter <peter@FreeBSD.org>1998-05-27 16:27:18 +0000
commit815e5f2dfa925c6a2e5870dad8906251410fc9f1 (patch)
tree192d614cdf98f4e7b4f2e8ee88a9daf9e53fc1ab /contrib/cvs
parentcae10d0ea1d68c41f6cc8b32519e4a9ee6e65c34 (diff)
downloadFreeBSD-src-815e5f2dfa925c6a2e5870dad8906251410fc9f1.zip
FreeBSD-src-815e5f2dfa925c6a2e5870dad8906251410fc9f1.tar.gz
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.
Diffstat (limited to 'contrib/cvs')
-rw-r--r--contrib/cvs/src/server.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/cvs/src/server.c b/contrib/cvs/src/server.c
index 53704625..5d4ffbc 100644
--- a/contrib/cvs/src/server.c
+++ b/contrib/cvs/src/server.c
@@ -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;
OpenPOWER on IntegriCloud