version 1.18, 2005/05/30 08:13:15 |
version 1.19, 2005/05/31 08:26:40 |
|
|
|
|
cvs_req_currentdir = strdup(rdir); |
cvs_req_currentdir = strdup(rdir); |
if (cvs_req_currentdir == NULL) { |
if (cvs_req_currentdir == NULL) { |
cvs_log(LP_ERROR, "failed to duplicate directory"); |
cvs_log(LP_ERR, "failed to duplicate directory"); |
return (-1); |
return (-1); |
} |
} |
|
|
|
|
|
|
/* write the file */ |
/* write the file */ |
if (cvs_buf_write(fdata, fpath, fmode) < 0) { |
if (cvs_buf_write(fdata, fpath, fmode) < 0) { |
cvs_log(LP_ERROR, "failed to create file %s", fpath); |
cvs_log(LP_ERR, "failed to create file %s", fpath); |
cvs_buf_free(fdata); |
cvs_buf_free(fdata); |
return (-1); |
return (-1); |
} |
} |