diff options
author | 2007-01-11 15:41:42 +0000 | |
---|---|---|
committer | 2007-01-11 15:41:42 +0000 | |
commit | d7c79aea54387a43efae312e74e7c2b5198f83f2 (patch) | |
tree | 5240628d0f118bef82d9d2e8eb718b7efeabc676 | |
parent | no need to unlink() the tmp files here as they have already been added (diff) | |
download | wireguard-openbsd-d7c79aea54387a43efae312e74e7c2b5198f83f2.tar.xz wireguard-openbsd-d7c79aea54387a43efae312e74e7c2b5198f83f2.zip |
revert last commit after discussing w/ joris@; makes sense to remove
the tmp files once we'r done w/ them, not at the very end only..
-rw-r--r-- | usr.bin/cvs/import.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/import.c b/usr.bin/cvs/import.c index cc30b2a5ece..f877bbdf8dc 100644 --- a/usr.bin/cvs/import.c +++ b/usr.bin/cvs/import.c @@ -1,4 +1,4 @@ -/* $OpenBSD: import.c,v 1.58 2007/01/11 12:37:29 xsa Exp $ */ +/* $OpenBSD: import.c,v 1.59 2007/01/11 15:41:42 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -357,6 +357,9 @@ import_get_rcsdiff(struct cvs_file *cf, RCSNUM *rev) if (cvs_diffreg(p2, p1, b3) == D_ERROR) fatal("import_get_rcsdiff: failed to get RCS patch"); + (void)unlink(p1); + (void)unlink(p2); + if (p1 != NULL) xfree(p1); if (p2 != NULL) |