diff options
author | Jan Beulich <jbeulich@novell.com> | 2005-03-02 09:03:58 +0000 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2005-03-02 09:03:58 +0000 |
commit | 9914c763416d7a639d254d232f77576d17923234 (patch) | |
tree | 41c7856df41a1b632c3c04734f451f77571bd808 /bfd/cache.c | |
parent | a008dd19e94a7e7aff023f0a94e256741c5b1ebe (diff) | |
download | binutils-redhat-9914c763416d7a639d254d232f77576d17923234.tar.gz |
bfd/
2005-03-02 Jan Beulich <jbeulich@novell.com>
* Makefile.am: Add dependency of cache.o on libiberty.h.
* cache.c: Include libiberty.h.
(bfd_open_file): Use unlink_if_ordinary instead of unlink.
binutils/
2005-03-02 Jan Beulich <jbeulich@novell.com>
* ar.c (remove_output): Use unlink_if_ordinary instead of unlink.
* objcopy.c (copy_file): Likewise.
(strip_main): Likewise.
gas/
2005-03-02 Jan Beulich <jbeulich@novell.com>
* as.c (main): Use unlink_if_ordinary instead of unlink.
* messages.c (as_fatal): Likewise.
ld/
2005-03-02 Jan Beulich <jbeulich@novell.com>
* ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
* pe-dll.c (pe_dll_generate_implib): Likewise.
Diffstat (limited to 'bfd/cache.c')
-rw-r--r-- | bfd/cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/cache.c b/bfd/cache.c index 0d6529b209..1146b5b22d 100644 --- a/bfd/cache.c +++ b/bfd/cache.c @@ -41,6 +41,7 @@ SECTION #include "bfd.h" #include "sysdep.h" #include "libbfd.h" +#include "libiberty.h" static bfd_boolean bfd_cache_delete (bfd *); @@ -436,7 +437,7 @@ bfd_open_file (bfd *abfd) struct stat s; if (stat (abfd->filename, &s) == 0 && s.st_size != 0) - unlink (abfd->filename); + unlink_if_ordinary (abfd->filename); #endif abfd->iostream = (PTR) fopen (abfd->filename, FOPEN_WUB); abfd->opened_once = TRUE; |