From 815e5f2dfa925c6a2e5870dad8906251410fc9f1 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 27 May 1998 16:27:18 +0000 Subject: 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. --- contrib/cvs/src/server.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'contrib/cvs/src') 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; -- cgit v1.1