[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in ar (all binutils version)
From: |
Mario Cupelli |
Subject: |
Bug in ar (all binutils version) |
Date: |
Thu, 27 Oct 2005 09:04:31 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.6 (X11/20050715) |
Hi,
the rename of temporary files does not work under windows.
Script test.mri
--------------
create foo.a
addmod a.o
save
exit
Script test1.mri
--------------
create foo.a
addmod b.o
save
exit
ar -M foo.a < test.mri
ar -t foo.a will result a.o
ar -M foo.a < test.mri
ar -t foo.a will result a.o instead of b.o under windows.
The bug is in arsup.c in function ar_save. The rename instead of smart_rename is
used. The smart_rename function take the operating system into account. This bug
is in all version of the binutils 2.11, 2.13, 2.14 and 2.15 under windows.
SW-Changes:
File: arsup.c
#if defined (_WIN32) && !defined (__CYGWIN32__)
smart_rename (ofilename, real_name, 0);
#else
rename (ofilename, real_name);
#endif
Bye
Mario
- Bug in ar (all binutils version),
Mario Cupelli <=