version 1.55, 2005/10/30 11:10:12 |
version 1.56, 2005/12/03 01:02:09 |
|
|
} |
} |
|
|
/* create CVS/Tag file (if needed) */ |
/* create CVS/Tag file (if needed) */ |
(void)cvs_write_tagfile(tag, date, nb); |
/* XXX correct? */ |
|
if (tag != NULL || date != NULL) |
|
(void)cvs_write_tagfile(tag, date, nb); |
|
|
return (0); |
return (0); |
} |
} |
|
|
CVSENTRIES *entf; |
CVSENTRIES *entf; |
struct cvs_ent *ent; |
struct cvs_ent *ent; |
|
|
if (create_adm == 1 && (root == NULL || repo == NULL)) { |
if (create_adm == 1 && (root == NULL)) { |
cvs_log(LP_ERR, "missing stuff in cvs_create_dir"); |
cvs_log(LP_ERR, "missing stuff in cvs_create_dir"); |
return (-1); |
return (-1); |
} |
} |
|
|
if ((s = strdup(path)) == NULL) |
if ((s = strdup(path)) == NULL) |
return (-1); |
return (-1); |
|
|
if (strlcpy(rpath, repo, sizeof(rpath)) >= sizeof(rpath) || |
rpath[0] = '\0'; |
strlcat(rpath, "/", sizeof(rpath)) >= sizeof(rpath)) { |
if (repo != NULL) { |
errno = ENAMETOOLONG; |
if (strlcpy(rpath, repo, sizeof(rpath)) >= sizeof(rpath)) { |
cvs_log(LP_ERRNO, "%s", rpath); |
errno = ENAMETOOLONG; |
free(s); |
cvs_log(LP_ERRNO, "%s", rpath); |
return (-1); |
free(s); |
|
return (-1); |
|
} |
|
|
|
if (strlcat(rpath, "/", sizeof(rpath)) >= sizeof(rpath)) { |
|
errno = ENAMETOOLONG; |
|
cvs_log(LP_ERRNO, "%s", rpath); |
|
free(s); |
|
return (-1); |
|
} |
} |
} |
|
|
ret = -1; |
ret = -1; |
|
|
goto done; |
goto done; |
} |
} |
|
|
cvs_ent_remove(entf, d); |
cvs_ent_remove(entf, d, 0); |
|
|
if (cvs_ent_add(entf, ent) < 0) { |
if (cvs_ent_add(entf, ent) < 0) { |
cvs_log(LP_ERR, "failed to add entry"); |
cvs_log(LP_ERR, "failed to add entry"); |