Don't care about an unlink failure
This commit is contained in:
parent
5f0e876707
commit
0885eef129
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue