summaryrefslogtreecommitdiff
path: root/binutils/arsup.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2004-04-07 05:11:24 +0000
committerAlan Modra <amodra@bigpond.net.au>2004-04-07 05:11:24 +0000
commit56de44d1278d10ef979ecd1f3af4f4cf3c5db50d (patch)
tree10217ba36612779c72d61839834e370a8c1f9199 /binutils/arsup.c
parent4b572de9d629ea5237b299cf255fc9520d76bb51 (diff)
downloadbinutils-redhat-56de44d1278d10ef979ecd1f3af4f4cf3c5db50d.tar.gz
PR 86
* arsup.c (ar_save): Use smart_rename.
Diffstat (limited to 'binutils/arsup.c')
-rw-r--r--binutils/arsup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/arsup.c b/binutils/arsup.c
index a621bf9b3f..5160dc47b5 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);
}