lkundrak / dev86

C compiler, assembler and linker environment for the production of 8086 executables
http://v3.sk/~lkundrak/dev86/
GNU General Public License v2.0
153 stars 44 forks source link

ar.c rename of temporary libary fails on some platforms #6

Closed anchorz closed 8 years ago

anchorz commented 8 years ago

if the destination already exists, rename (tempname, archive) will fail, add unlink() first:

ar.c: if (!appendflag) { unlink(archive); if (rename (tempname, archive)) { printf("rename failed %d %s\n",errno,strerror(errno)); pfatal_with_name (tempname); } }

lkundrak commented 8 years ago

Merged, thanks!

mfld-fr commented 7 years ago

Sorry for the mixing of the issues, latest commit actually related to mfld-fr#6, not this one.