version 1.23, 2005/04/12 14:58:40 |
version 1.24, 2005/04/15 14:34:15 |
|
|
int |
int |
cvs_commit_file(CVSFILE *cf, void *arg) |
cvs_commit_file(CVSFILE *cf, void *arg) |
{ |
{ |
int ret; |
int ret, l; |
char *repo, rcspath[MAXPATHLEN], fpath[MAXPATHLEN]; |
char *repo, rcspath[MAXPATHLEN], fpath[MAXPATHLEN]; |
RCSFILE *rf; |
RCSFILE *rf; |
struct cvsroot *root; |
struct cvsroot *root; |
|
|
} |
} |
} |
} |
|
|
snprintf(rcspath, sizeof(rcspath), "%s/%s/%s%s", |
l = snprintf(rcspath, sizeof(rcspath), "%s/%s/%s%s", |
root->cr_dir, repo, fpath, RCS_FILE_EXT); |
root->cr_dir, repo, fpath, RCS_FILE_EXT); |
|
if (l == -1 || l >= (int)sizeof(rcspath)) { |
|
errno = ENAMETOOLONG; |
|
cvs_log(LP_ERRNO, "%s", rcspath); |
|
return (-1); |
|
} |
|
|
cvs_ent_free(entp); |
cvs_ent_free(entp); |
|
|