summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/buf.c
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2006-03-15 19:48:13 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2006-03-15 19:48:13 +0000
commit765ca97a71a9572d1e44e2d98fd5e3970de74a43 (patch)
treea370ead32ff3187a8626b7ad9b9ff97b7a6a11b8 /usr.bin/cvs/buf.c
parent9b49f78bb11df6afaabad78a1f65d831baf9cadf (diff)
- fchmod file to mode.
ok ray@
Diffstat (limited to 'usr.bin/cvs/buf.c')
-rw-r--r--usr.bin/cvs/buf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cvs/buf.c b/usr.bin/cvs/buf.c
index 052c1a5df6e..ded55b4d649 100644
--- a/usr.bin/cvs/buf.c
+++ b/usr.bin/cvs/buf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buf.c,v 1.35 2006/03/07 17:22:08 xsa Exp $ */
+/* $OpenBSD: buf.c,v 1.36 2006/03/15 19:48:12 niallo Exp $ */
/*
* Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -416,6 +416,7 @@ cvs_buf_write_stmp(BUF *b, char *template, mode_t mode)
(void)unlink(template);
fatal("cvs_buf_write_stmp: cvs_buf_write_fd: `%s'", template);
}
+ (void)fchmod(fd, mode);
(void)close(fd);
return (0);