version 1.68, 2010/10/15 08:44:12 |
version 1.69, 2010/10/20 19:53:53 |
|
|
rfp->rf_path = xstrdup(path); |
rfp->rf_path = xstrdup(path); |
rfp->rf_flags = flags | RCS_SLOCK | RCS_SYNCED; |
rfp->rf_flags = flags | RCS_SLOCK | RCS_SYNCED; |
rfp->rf_mode = fmode; |
rfp->rf_mode = fmode; |
rfp->rf_fd = fd; |
if (fd == -1) |
|
rfp->rf_file = NULL; |
|
else if ((rfp->rf_file = fdopen(fd, "r")) == NULL) |
|
err(1, "rcs_open: fdopen: `%s'", path); |
|
|
TAILQ_INIT(&(rfp->rf_delta)); |
TAILQ_INIT(&(rfp->rf_delta)); |
TAILQ_INIT(&(rfp->rf_access)); |
TAILQ_INIT(&(rfp->rf_access)); |
|
|
if (rfp->rf_branch != NULL) |
if (rfp->rf_branch != NULL) |
rcsnum_free(rfp->rf_branch); |
rcsnum_free(rfp->rf_branch); |
|
|
|
if (rfp->rf_file != NULL) |
|
fclose(rfp->rf_file); |
if (rfp->rf_path != NULL) |
if (rfp->rf_path != NULL) |
xfree(rfp->rf_path); |
xfree(rfp->rf_path); |
if (rfp->rf_comment != NULL) |
if (rfp->rf_comment != NULL) |