version 1.11, 2004/08/31 11:54:35 |
version 1.12, 2004/12/06 21:03:13 |
|
|
} |
} |
|
|
root->cr_user = cp; |
root->cr_user = cp; |
} |
} else |
else |
|
sp = cp; |
sp = cp; |
|
|
pp = strchr(sp, ':'); |
pp = strchr(sp, ':'); |
|
|
if (tmp == NULL) { |
if (tmp == NULL) { |
/* just forget about the cache and return anyways */ |
/* just forget about the cache and return anyways */ |
root->cr_ref--; |
root->cr_ref--; |
} |
} else { |
else { |
|
cvs_rcache = (struct cvsroot **)tmp; |
cvs_rcache = (struct cvsroot **)tmp; |
cvs_rcache[cvs_rcsz++] = root; |
cvs_rcache[cvs_rcsz++] = root; |
} |
} |
|
|
return cvsroot_parse(rootstr); |
return cvsroot_parse(rootstr); |
else |
else |
return (NULL); |
return (NULL); |
} |
} else { |
else { |
|
cvs_log(LP_ERRNO, "failed to open CVS/Root"); |
cvs_log(LP_ERRNO, "failed to open CVS/Root"); |
return (NULL); |
return (NULL); |
} |
} |
|
|
len = strlen(line); |
len = strlen(line); |
if (len == 0) { |
if (len == 0) { |
cvs_log(LP_WARN, "empty CVS/Root file"); |
cvs_log(LP_WARN, "empty CVS/Root file"); |
} |
} else if (line[len - 1] == '\n') |
else if (line[len - 1] == '\n') |
|
line[--len] = '\0'; |
line[--len] = '\0'; |
|
|
return cvsroot_parse(line); |
return cvsroot_parse(line); |