diff --git a/contrib/cvs/src/login.c b/contrib/cvs/src/login.c index 4ffce36d0fd9..0a74f373dd87 100644 --- a/contrib/cvs/src/login.c +++ b/contrib/cvs/src/login.c @@ -293,6 +293,9 @@ get_cvs_password () FILE *fp; char *passfile; int line_length; + int anoncvs; + + anoncvs = (strcmp(CVSroot_username, "anoncvs") == 0); /* If someone (i.e., login()) is calling connect_to_pserver() out of context, then assume they have supplied the correct, scrambled @@ -333,6 +336,10 @@ get_cvs_password () fp = CVS_FOPEN (passfile, "r"); if (fp == NULL) { + if (anoncvs) { + free (passfile); + return strdup("Ay=0=h