diff options
author | 2006-07-08 09:25:44 +0000 | |
---|---|---|
committer | 2006-07-08 09:25:44 +0000 | |
commit | 1306bec60507eecf2fb419a5a9c96d18835eb3c4 (patch) | |
tree | d6f974e9c34b97e702a0ed2e7f7e29fbcf2213cc /usr.bin/cvs/commit.c | |
parent | rcs_splitlines() can never return NULL, so don't check for it. (diff) | |
download | wireguard-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/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index 9a66ddfb60d..c6889018060 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.80 2006/07/07 17:37:17 joris Exp $ */ +/* $OpenBSD: commit.c,v 1.81 2006/07/08 09:25:44 ray Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -394,11 +394,11 @@ commit_diff_file(struct cvs_file *cf) fatal("commit_diff_file: failed to create diff buf"); (void)xasprintf(&p1, "%s/diff1.XXXXXXXXXX", cvs_tmpdir); - cvs_buf_write_stmp(b1, p1, 0600, NULL); + cvs_buf_write_stmp(b1, p1, NULL); cvs_buf_free(b1); (void)xasprintf(&p2, "%s/diff2.XXXXXXXXXX", cvs_tmpdir); - cvs_buf_write_stmp(b2, p2, 0600, NULL); + cvs_buf_write_stmp(b2, p2, NULL); cvs_buf_free(b2); diff_format = D_RCSDIFF; |