277 |
in the cache. */ |
in the cache. */ |
278 |
rcsbuf_cache_close (); |
rcsbuf_cache_close (); |
279 |
|
|
280 |
if ((rcsfile = locate_rcs (repos, file, &inattic)) == NULL) |
if (!(rcsfile = locate_rcs (repos, file, &inattic))) |
281 |
{ |
{ |
282 |
/* Handle the error cases */ |
/* Handle the error cases */ |
283 |
} |
} |
284 |
else if ((fp = CVS_FOPEN (rcsfile, FOPEN_BINARY_READ)) != NULL) |
else if ((fp = CVS_FOPEN (rcsfile, FOPEN_BINARY_READ))) |
285 |
{ |
{ |
286 |
rcs = RCS_parsercsfile_i(fp, rcsfile); |
rcs = RCS_parsercsfile_i (fp, rcsfile); |
287 |
if (rcs != NULL) |
if (rcs) |
288 |
{ |
{ |
289 |
rcs->flags |= VALID; |
rcs->flags |= VALID; |
290 |
if ( inattic ) |
if (inattic) |
291 |
rcs->flags |= INATTIC; |
rcs->flags |= INATTIC; |
292 |
} |
} |
293 |
|
|
294 |
free ( rcsfile ); |
free (rcsfile); |
295 |
retval = rcs; |
retval = rcs; |
296 |
} |
} |
297 |
else if (! existence_error (errno)) |
else if (!existence_error (errno)) |
298 |
{ |
{ |
299 |
error (0, errno, "cannot open %s", rcsfile); |
error (0, errno, "cannot open `%s'", rcsfile); |
300 |
free (rcsfile); |
free (rcsfile); |
301 |
} |
} |
302 |
|
|