version 1.76, 2006/01/02 17:06:10 |
version 1.77, 2006/01/25 11:13:18 |
|
|
static int |
static int |
cvs_diff_local(CVSFILE *cf, void *arg) |
cvs_diff_local(CVSFILE *cf, void *arg) |
{ |
{ |
int len; |
|
char *repo, buf[64]; |
char *repo, buf[64]; |
char fpath[MAXPATHLEN], rcspath[MAXPATHLEN]; |
char fpath[MAXPATHLEN], rcspath[MAXPATHLEN]; |
char path_tmp1[MAXPATHLEN], path_tmp2[MAXPATHLEN]; |
char path_tmp1[MAXPATHLEN], path_tmp2[MAXPATHLEN]; |
|
|
return (0); |
return (0); |
|
|
/* at this point, the file is modified */ |
/* at this point, the file is modified */ |
len = snprintf(rcspath, sizeof(rcspath), "%s/%s/%s%s", |
cvs_rcs_getpath(cf, rcspath, sizeof(rcspath)); |
root->cr_dir, repo, diff_file, RCS_FILE_EXT); |
|
if (len == -1 || len >= (int)sizeof(rcspath)) { |
|
errno = ENAMETOOLONG; |
|
cvs_log(LP_ERRNO, "%s", rcspath); |
|
return (CVS_EX_DATA); |
|
} |
|
|
|
rf = rcs_open(rcspath, RCS_READ); |
rf = rcs_open(rcspath, RCS_READ); |
if (rf == NULL) { |
if (rf == NULL) { |