version 1.17, 2005/04/16 20:26:05 |
version 1.18, 2005/04/16 20:31:18 |
|
|
int |
int |
cvs_status_local(CVSFILE *cfp, void *arg) |
cvs_status_local(CVSFILE *cfp, void *arg) |
{ |
{ |
|
int l; |
char *repo, buf[MAXNAMLEN], fpath[MAXPATHLEN], rcspath[MAXPATHLEN]; |
char *repo, buf[MAXNAMLEN], fpath[MAXPATHLEN], rcspath[MAXPATHLEN]; |
RCSFILE *rf; |
RCSFILE *rf; |
struct cvs_ent *entp; |
struct cvs_ent *entp; |
|
|
return (0); |
return (0); |
} |
} |
|
|
snprintf(rcspath, sizeof(rcspath), "%s/%s/%s%s", |
l = snprintf(rcspath, sizeof(rcspath), "%s/%s/%s%s", |
root->cr_dir, repo, CVS_FILE_NAME(cfp), RCS_FILE_EXT); |
root->cr_dir, repo, CVS_FILE_NAME(cfp), RCS_FILE_EXT); |
|
if (l == -1 || l >= (int)sizeof(rcspath)) { |
|
errno = ENAMETOOLONG; |
|
cvs_log(LP_ERRNO, "%s", rcspath); |
|
|
|
cvs_ent_free(entp); |
|
return (-1); |
|
} |
|
|
rf = rcs_open(rcspath, RCS_READ); |
rf = rcs_open(rcspath, RCS_READ); |
if (rf == NULL) { |
if (rf == NULL) { |