version 1.34, 2007/01/18 22:52:23 |
version 1.35, 2007/02/07 17:54:42 |
|
|
if (cvs_rootstr != NULL) |
if (cvs_rootstr != NULL) |
return cvsroot_parse(cvs_rootstr); |
return cvsroot_parse(cvs_rootstr); |
|
|
if (strlcpy(rootpath, dir, sizeof(rootpath)) >= sizeof(rootpath) || |
(void)xsnprintf(rootpath, MAXPATHLEN, "%s/%s", dir, CVS_PATH_ROOTSPEC); |
strlcat(rootpath, "/", sizeof(rootpath)) >= sizeof(rootpath) || |
|
strlcat(rootpath, CVS_PATH_ROOTSPEC, |
|
sizeof(rootpath)) >= sizeof(rootpath)) { |
|
errno = ENAMETOOLONG; |
|
fatal("cvsroot_get: %s: %s", rootpath, strerror(errno)); |
|
} |
|
|
|
if ((fp = fopen(rootpath, "r")) == NULL) { |
if ((fp = fopen(rootpath, "r")) == NULL) { |
if (errno == ENOENT) { |
if (errno == ENOENT) { |