summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorray <ray@openbsd.org>2006-07-08 09:25:44 +0000
committerray <ray@openbsd.org>2006-07-08 09:25:44 +0000
commit1306bec60507eecf2fb419a5a9c96d18835eb3c4 (patch)
treed6f974e9c34b97e702a0ed2e7f7e29fbcf2213cc /usr.bin/cvs/diff.c
parentrcs_splitlines() can never return NULL, so don't check for it. (diff)
downloadwireguard-openbsd-1306bec60507eecf2fb419a5a9c96d18835eb3c4.tar.xz
wireguard-openbsd-1306bec60507eecf2fb419a5a9c96d18835eb3c4.zip
Remove file mode argument from {cvs|rcs}_buf_write_stmp(). We
always set the temporary file to mode 600, which is already done by mkstemp(). OK joris@ and xsa@ over a month ago.
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index af6ef52a97a..843a6f45ed3 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.108 2006/07/07 17:37:17 joris Exp $ */
+/* $OpenBSD: diff.c,v 1.109 2006/07/08 09:25:44 ray Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -263,7 +263,7 @@ cvs_diff_local(struct cvs_file *cf)
if (len >= sizeof(p1))
fatal("cvs_diff_local: truncation");
- cvs_buf_write_stmp(b1, p1, 0600, tv);
+ cvs_buf_write_stmp(b1, p1, tv);
cvs_buf_free(b1);
} else {
len = strlcpy(p1, CVS_PATH_DEVNULL, sizeof(p1));
@@ -280,7 +280,7 @@ cvs_diff_local(struct cvs_file *cf)
if (len >= sizeof(p2))
fatal("cvs_diff_local: truncation");
- cvs_buf_write_stmp(b2, p2, 0600, tv2);
+ cvs_buf_write_stmp(b2, p2, tv2);
cvs_buf_free(b2);
} else {
len = strlcpy(p2, CVS_PATH_DEVNULL, sizeof(p2));