=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/import.c,v retrieving revision 1.58 retrieving revision 1.59 diff -u -r1.58 -r1.59 --- src/usr.bin/cvs/import.c 2007/01/11 12:37:29 1.58 +++ src/usr.bin/cvs/import.c 2007/01/11 15:41:42 1.59 @@ -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 * @@ -356,6 +356,9 @@ diff_format = D_RCSDIFF; 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);