Closed anchorz closed 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); } }
Merged, thanks!
Sorry for the mixing of the issues, latest commit actually related to mfld-fr#6, not this one.
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); } }