Don't care about an unlink failure

This commit is contained in:
Steve Chamberlain 1991-10-29 07:13:23 +00:00
parent 5f0e876707
commit 0885eef129

View File

@ -692,8 +692,11 @@ write_archive()
if (!bfd_close(obfd))
bfd_fatal(inarch->filename);
if (unlink(inarch->filename) != 0)
bfd_fatal(inarch->filename);
/* We don't care if this fails, we might be creating the
archive */
(void) unlink(inarch->filename);
if (rename(new_name, inarch->filename) != 0)
bfd_fatal(inarch->filename);
#if 0