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.
This commit is contained in:
Jan Beulich
2005-03-02 09:03:58 +00:00
parent c4a530c529
commit bb14f52400
13 changed files with 33 additions and 10 deletions

View File

@@ -1,3 +1,9 @@
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.
2005-03-01 Stig Petter Olsroed <stigpo@users.sourceforge.net>
Nick Clifton <nickc@redhat.com>

View File

@@ -323,7 +323,7 @@ remove_output (void)
bfd_cache_close (output_bfd);
if (output_file != NULL)
fclose (output_file);
unlink (output_filename);
unlink_if_ordinary (output_filename);
}
}

View File

@@ -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);
}