summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsdiff.c
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-07-08 09:25:45 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-07-08 09:25:45 +0000
commit907fb5cd814439ccc648628c99c54afd91ddf3e2 (patch)
tree6b511f331b9418ed0a9e41e746ce872b2622d119 /usr.bin/rcs/rcsdiff.c
parentd8aaf277a540b3ac999a3d657ca6fbe490f9f53d (diff)
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/rcs/rcsdiff.c')
-rw-r--r--usr.bin/rcs/rcsdiff.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/rcs/rcsdiff.c b/usr.bin/rcs/rcsdiff.c
index 2140c994c23..d99f1445ed2 100644
--- a/usr.bin/rcs/rcsdiff.c
+++ b/usr.bin/rcs/rcsdiff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsdiff.c,v 1.66 2006/06/04 20:32:56 niallo Exp $ */
+/* $OpenBSD: rcsdiff.c,v 1.67 2006/07/08 09:25:44 ray Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -234,7 +234,7 @@ rcsdiff_file(RCSFILE *file, RCSNUM *rev, const char *filename)
tv2[1].tv_sec = t;
(void)xasprintf(&path1, "%s/diff1.XXXXXXXXXX", rcs_tmpdir);
- rcs_buf_write_stmp(b1, path1, 0600);
+ rcs_buf_write_stmp(b1, path1);
rcs_buf_free(b1);
b1 = NULL;
@@ -243,7 +243,7 @@ rcsdiff_file(RCSFILE *file, RCSNUM *rev, const char *filename)
warn("utimes");
(void)xasprintf(&path2, "%s/diff2.XXXXXXXXXX", rcs_tmpdir);
- rcs_buf_write_stmp(b2, path2, 0600);
+ rcs_buf_write_stmp(b2, path2);
rcs_buf_free(b2);
b2 = NULL;
@@ -316,7 +316,7 @@ rcsdiff_rev(RCSFILE *file, RCSNUM *rev1, RCSNUM *rev2)
fprintf(stderr, "%s -r%s -r%s\n", diffargs, rbuf1, rbuf2);
(void)xasprintf(&path1, "%s/diff1.XXXXXXXXXX", rcs_tmpdir);
- rcs_buf_write_stmp(b1, path1, 0600);
+ rcs_buf_write_stmp(b1, path1);
rcs_buf_free(b1);
b1 = NULL;
@@ -325,7 +325,7 @@ rcsdiff_rev(RCSFILE *file, RCSNUM *rev1, RCSNUM *rev2)
warn("utimes");
(void)xasprintf(&path2, "%s/diff2.XXXXXXXXXX", rcs_tmpdir);
- rcs_buf_write_stmp(b2, path2, 0600);
+ rcs_buf_write_stmp(b2, path2);
rcs_buf_free(b2);
b2 = NULL;