diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2009-02-15 13:40:34 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2009-02-15 13:40:34 +0000 |
commit | 143eb6aa41b932670c7118cdab86ac9025f5c5c0 (patch) | |
tree | a15bb3c653c80286a669db0f8cec6ac0104ea99f /usr.bin/cvs/rcs.c | |
parent | 29f9312a27f071520cae311de19714be474d6201 (diff) |
add our temporary RCS file to our temp_files worklist in case
for some reason we get interrupted before calling rename().
we hate leaving behind temporary files.
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r-- | usr.bin/cvs/rcs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c index a341ed5fe30..ff8ef9be8e2 100644 --- a/usr.bin/cvs/rcs.c +++ b/usr.bin/cvs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.283 2009/01/02 00:11:01 canacar Exp $ */ +/* $OpenBSD: rcs.c,v 1.284 2009/02/15 13:40:33 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -401,6 +401,8 @@ rcs_write(RCSFILE *rfp) fatal("fdopen %s: %s", fn, strerror(saved_errno)); } + cvs_worklist_add(fn, &temp_files); + if (rfp->rf_head != NULL) rcsnum_tostr(rfp->rf_head, numbuf, sizeof(numbuf)); else |