mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 20:14:06 +08:00
Don't care about an unlink failure
This commit is contained in:
parent
5f0e876707
commit
0885eef129
@ -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…
Reference in New Issue
Block a user