version 1.12, 2005/10/16 12:03:09 |
version 1.13, 2005/10/27 07:43:56 |
|
|
return (-1); |
return (-1); |
} |
} |
|
|
strlcpy(path1, "/tmp/diff1.XXXXXXXXXX", sizeof(path1)); |
strlcpy(path1, rcs_tmpdir, sizeof(path1)); |
|
strlcat(path1, "/diff1.XXXXXXXXXX", sizeof(path1)); |
if (cvs_buf_write_stmp(b1, path1, 0600) == -1) { |
if (cvs_buf_write_stmp(b1, path1, 0600) == -1) { |
cvs_log(LP_ERRNO, "could not write temporary file"); |
cvs_log(LP_ERRNO, "could not write temporary file"); |
cvs_buf_free(b1); |
cvs_buf_free(b1); |
|
|
} |
} |
cvs_buf_free(b1); |
cvs_buf_free(b1); |
|
|
strlcpy(path2, "/tmp/diff2.XXXXXXXXXX", sizeof(path2)); |
strlcpy(path2, rcs_tmpdir, sizeof(path2)); |
|
strlcat(path2, "/diff2.XXXXXXXXXX", sizeof(path2)); |
if (cvs_buf_write_stmp(b2, path2, 0600) == -1) { |
if (cvs_buf_write_stmp(b2, path2, 0600) == -1) { |
cvs_buf_free(b2); |
cvs_buf_free(b2); |
(void)unlink(path1); |
(void)unlink(path1); |
|
|
return (-1); |
return (-1); |
} |
} |
|
|
strlcpy(path1, "/tmp/diff1.XXXXXXXXXX", sizeof(path1)); |
strlcpy(path1, rcs_tmpdir, sizeof(path1)); |
|
strlcat(path1, "/diff1.XXXXXXXXXX", sizeof(path1)); |
if (cvs_buf_write_stmp(b1, path1, 0600) == -1) { |
if (cvs_buf_write_stmp(b1, path1, 0600) == -1) { |
cvs_log(LP_ERRNO, "could not write temporary file"); |
cvs_log(LP_ERRNO, "could not write temporary file"); |
cvs_buf_free(b1); |
cvs_buf_free(b1); |
|
|
} |
} |
cvs_buf_free(b1); |
cvs_buf_free(b1); |
|
|
strlcpy(path2, "/tmp/diff2.XXXXXXXXXX", sizeof(path2)); |
strlcpy(path2, rcs_tmpdir, sizeof(path2)); |
|
strlcat(path2, "/diff2.XXXXXXXXXX", sizeof(path2)); |
if (cvs_buf_write_stmp(b2, path2, 0600) == -1) { |
if (cvs_buf_write_stmp(b2, path2, 0600) == -1) { |
cvs_buf_free(b2); |
cvs_buf_free(b2); |
(void)unlink(path1); |
(void)unlink(path1); |