version 1.38, 2005/07/07 14:27:57 |
version 1.39, 2005/07/14 06:50:50 |
|
|
static int |
static int |
cvs_update_local(CVSFILE *cf, void *arg) |
cvs_update_local(CVSFILE *cf, void *arg) |
{ |
{ |
int ret, l; |
int ret; |
char *repo, fpath[MAXPATHLEN], rcspath[MAXPATHLEN]; |
char fpath[MAXPATHLEN], rcspath[MAXPATHLEN]; |
RCSFILE *rf; |
RCSFILE *rf; |
struct cvsroot *root; |
|
|
|
ret = 0; |
ret = 0; |
rf = NULL; |
rf = NULL; |
root = CVS_DIR_ROOT(cf); |
|
repo = CVS_DIR_REPO(cf); |
|
|
|
cvs_file_getpath(cf, fpath, sizeof(fpath)); |
cvs_file_getpath(cf, fpath, sizeof(fpath)); |
|
|
|
|
return (CVS_EX_OK); |
return (CVS_EX_OK); |
} |
} |
|
|
l = snprintf(rcspath, sizeof(rcspath), "%s/%s/%s%s", |
if (cvs_rcs_getpath(cf, rcspath, sizeof(rcspath)) == NULL) |
root->cr_dir, repo, cf->cf_name, RCS_FILE_EXT); |
|
if (l == -1 || l >= (int)sizeof(rcspath)) { |
|
errno = ENAMETOOLONG; |
|
cvs_log(LP_ERRNO, "%s", rcspath); |
|
return (CVS_EX_DATA); |
return (CVS_EX_DATA); |
} |
|
|
|
rf = rcs_open(rcspath, RCS_RDWR); |
rf = rcs_open(rcspath, RCS_RDWR); |
if (rf == NULL) { |
if (rf == NULL) { |