From: Alan Modra Date: Wed, 7 Apr 2004 05:11:24 +0000 (+0000) Subject: PR 86 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ba93119e8e3d0c01b44ad8317551e5b886783b0;p=binutils-gdb.git PR 86 * arsup.c (ar_save): Use smart_rename. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 50ca43dc00b..0fbcb5f0605 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2004-04-07 Benjamin Monate + + PR 86 + * arsup.c (ar_save): Use smart_rename. + 2004-04-01 Dean Luick * readelf.c (display_debug_pubnames): Align offset and data diff --git a/binutils/arsup.c b/binutils/arsup.c index a621bf9b3f1..5160dc47b57 100644 --- a/binutils/arsup.c +++ b/binutils/arsup.c @@ -1,5 +1,5 @@ /* arsup.c - Archive support for MRI compatibility - Copyright 1992, 1994, 1995, 1996, 1997, 2000, 2002, 2003 + Copyright 1992, 1994, 1995, 1996, 1997, 2000, 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -333,7 +333,7 @@ ar_save (void) bfd_close (obfd); - rename (ofilename, real_name); + smart_rename (ofilename, real_name, 0); obfd = 0; free (ofilename); }