summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-12-21 09:09:03 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-12-21 09:09:03 +0000
commit6eaa4a0a2a55812007b9429cf3c42f12847d7924 (patch)
tree2faa7551dd4f78dfe64144e1041ef06b6d9d4b35 /usr.bin/cvs/diff.c
parent1534bb5e4074929a07f1fcc1195962967d5508ce (diff)
cvs_buf_write_stmp() cannot fail anymore, missed it in previous commit;
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index 6b833013ba4..42790b9133b 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.72 2005/12/20 18:17:00 xsa Exp $ */
+/* $OpenBSD: diff.c,v 1.73 2005/12/21 09:09:02 xsa Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -682,11 +682,7 @@ cvs_diff_local(CVSFILE *cf, void *arg)
strlcpy(path_tmp2, cvs_tmpdir, sizeof(path_tmp2));
strlcat(path_tmp2, "/diff2.XXXXXXXXXX", sizeof(path_tmp2));
- if (cvs_buf_write_stmp(b2, path_tmp2, 0600) == -1) {
- cvs_buf_free(b2);
- (void)unlink(path_tmp1);
- return (CVS_EX_DATA);
- }
+ cvs_buf_write_stmp(b2, path_tmp2, 0600);
cvs_buf_free(b2);
if (utimes(path_tmp2, (const struct timeval *)&tv2) < 0)
cvs_log(LP_ERRNO, "error setting utimes");