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 | bb14f524002c5b0e93c17e929109f4c735f11f5b (patch) | |
tree | b7770e62a4202287cefd5d0409b400908b88d981 /binutils/objcopy.c | |
parent | c4a530c52970c9fdd3a6c0315503a058e132f073 (diff) | |
download | gdb-bb14f524002c5b0e93c17e929109f4c735f11f5b.zip gdb-bb14f524002c5b0e93c17e929109f4c735f11f5b.tar.gz gdb-bb14f524002c5b0e93c17e929109f4c735f11f5b.tar.bz2 |
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 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index d58e12e..63d5a15 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -1731,7 +1731,7 @@ copy_file (const char *input_filename, const char *output_filename, if (delete) { - unlink (output_filename); + unlink_if_ordinary (output_filename); status = 1; } } @@ -2438,7 +2438,7 @@ strip_main (int argc, char *argv[]) status = hold_status; } else - unlink (tmpname); + unlink_if_ordinary (tmpname); if (output_file == NULL) free (tmpname); } |