version 1.8, 2005/07/29 17:04:42 |
version 1.9, 2005/08/02 20:05:42 |
|
|
if (histp->chf_fd == -1) { |
if (histp->chf_fd == -1) { |
cvs_log(LP_ERRNO, |
cvs_log(LP_ERRNO, |
"failed to open CVS history file `%s'", path); |
"failed to open CVS history file `%s'", path); |
|
cvs_nolog = 1; |
free(histp->chf_buf); |
free(histp->chf_buf); |
free(histp); |
free(histp); |
return (NULL); |
return (NULL); |
|
|
cvs_hist_append(CVSHIST *histp, struct cvs_hent *hentp) |
cvs_hist_append(CVSHIST *histp, struct cvs_hent *hentp) |
{ |
{ |
char hbuf[128]; |
char hbuf[128]; |
|
|
|
if (cvs_nolog == 1) |
|
return (0); |
|
|
if (cvs_hist_fmt(hentp, hbuf, sizeof(hbuf)) < 0) { |
if (cvs_hist_fmt(hentp, hbuf, sizeof(hbuf)) < 0) { |
cvs_log(LP_ERR, "failed to append CVS history entry"); |
cvs_log(LP_ERR, "failed to append CVS history entry"); |