This seems correct and I don't see harm...
Comments? You want to put it in?
It in HJ Lu's 2.6.0.13 linux binutils distribution.
--- bfd/cache.c 1996/05/16 18:33:35 1.1
+++ bfd/cache.c 1996/05/16 18:34:16
@@ -286,6 +286,8 @@
else
{
/*open for creat */
+ /* get rid of an existing file */
+ unlink(abfd->filename);
abfd->iostream = (PTR) fopen (abfd->filename, FOPEN_WB);
abfd->opened_once = true;
}
~
~
~
-- marty leisner@sdsp.mc.xerox.com Member of the League for Programming Freedom