version 1.39, 2005/07/12 07:12:13 |
version 1.40, 2005/07/14 06:50:50 |
|
|
static int |
static int |
cvs_commit_local(CVSFILE *cf, void *arg) |
cvs_commit_local(CVSFILE *cf, void *arg) |
{ |
{ |
int len; |
|
char fpath[MAXPATHLEN], rcspath[MAXPATHLEN]; |
char fpath[MAXPATHLEN], rcspath[MAXPATHLEN]; |
char *repo; |
|
struct cvsroot *root; |
|
|
|
if (cf->cf_type == DT_DIR) { |
if (cf->cf_type == DT_DIR) { |
if (verbosity > 1) |
if (verbosity > 1) |
|
|
return (0); |
return (0); |
} |
} |
|
|
root = CVS_DIR_ROOT(cf); |
|
repo = CVS_DIR_REPO(cf); |
|
|
|
cvs_file_getpath(cf, fpath, sizeof(fpath)); |
cvs_file_getpath(cf, fpath, sizeof(fpath)); |
|
|
len = snprintf(rcspath, sizeof(rcspath), "%s/%s/%s%s", |
if (cvs_rcs_getpath(cf, rcspath, sizeof(rcspath)) == NULL) |
root->cr_dir, repo, fpath, RCS_FILE_EXT); |
|
if (len == -1 || len >= (int)sizeof(rcspath)) { |
|
errno = ENAMETOOLONG; |
|
cvs_log(LP_ERRNO, "%s", rcspath); |
|
return (CVS_EX_DATA); |
return (CVS_EX_DATA); |
} |
|
|
|
return (0); |
return (0); |
} |
} |