summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/logmsg.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2007-01-07 18:40:56 +0000
committerJoris Vink <joris@cvs.openbsd.org>2007-01-07 18:40:56 +0000
commitdcde0e91b8e01ccce8daf6007a0e0df35823ec4f (patch)
tree44018439491a3e42fde747fb9a5b30685cb39c4c /usr.bin/cvs/logmsg.c
parent8110d28b54513281971214d7227dfcc0ff933183 (diff)
add the temporary file we create to the temp_files worklist
Diffstat (limited to 'usr.bin/cvs/logmsg.c')
-rw-r--r--usr.bin/cvs/logmsg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/logmsg.c b/usr.bin/cvs/logmsg.c
index 03e2e5796fc..a0413d9dbf8 100644
--- a/usr.bin/cvs/logmsg.c
+++ b/usr.bin/cvs/logmsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: logmsg.c,v 1.32 2007/01/07 13:33:04 jasper Exp $ */
+/* $OpenBSD: logmsg.c,v 1.33 2007/01/07 18:40:55 joris Exp $ */
/*
* Copyright (c) 2007 Joris Vink <joris@openbsd.org>
*
@@ -104,6 +104,8 @@ cvs_logmsg_create(struct cvs_flisthead *added, struct cvs_flisthead *removed,
if ((fd = mkstemp(fpath)) == NULL)
fatal("cvs_logmsg_create: mkstemp %s", strerror(errno));
+ cvs_worklist_add(fpath, &temp_files);
+
if ((fp = fdopen(fd, "w")) == NULL) {
(void)unlink(fpath);
fatal("cvs_logmsg_create: fdopen %s", strerror(errno));