summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/ci.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2006-04-10 19:49:46 +0000
committerJoris Vink <joris@cvs.openbsd.org>2006-04-10 19:49:46 +0000
commitb8f6fc4b89fd368bfa5f6fdededf178314a8cd96 (patch)
treee3b39b4d25287d25b768a1d6e090c21ac4958e9f /usr.bin/rcs/ci.c
parenta3ec948694ddf8e8758f8275087e78b48874e655 (diff)
make sure we add the correct name mkstemp(3) creates for us
to the worklist of temporary files. this way we definatly don't leave any files behind in /tmp. tested & okay niallo@
Diffstat (limited to 'usr.bin/rcs/ci.c')
-rw-r--r--usr.bin/rcs/ci.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c
index 04ed168af9a..ec7ccaa1ee9 100644
--- a/usr.bin/rcs/ci.c
+++ b/usr.bin/rcs/ci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ci.c,v 1.137 2006/04/09 19:22:23 niallo Exp $ */
+/* $OpenBSD: ci.c,v 1.138 2006/04/10 19:49:44 joris Exp $ */
/*
* Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org>
* All rights reserved.
@@ -327,8 +327,6 @@ checkin_diff_file(struct checkin_params *pb)
strlcpy(path1, rcs_tmpdir, sizeof(path1));
strlcat(path1, "/diff1.XXXXXXXXXX", sizeof(path1));
-
- cvs_worklist_add(path1, &rcs_temp_files);
cvs_buf_write_stmp(b1, path1, 0600);
cvs_buf_free(b1);
@@ -336,8 +334,6 @@ checkin_diff_file(struct checkin_params *pb)
strlcpy(path2, rcs_tmpdir, sizeof(path2));
strlcat(path2, "/diff2.XXXXXXXXXX", sizeof(path2));
-
- cvs_worklist_add(path2, &rcs_temp_files);
cvs_buf_write_stmp(b2, path2, 0600);
cvs_buf_free(b2);