# # # patch "txt2c.cc" # from [b23798126943239eaff66187b8828e153ec2c8d8] # to [34ec5950e374163319ec21308bc7215bce635bfb] # ============================================================ --- txt2c.cc b23798126943239eaff66187b8828e153ec2c8d8 +++ txt2c.cc 34ec5950e374163319ec21308bc7215bce635bfb @@ -151,7 +151,11 @@ atomic_update_if_changed(char const *ofn } if (rename(tfname.c_str(), ofname)) - throw ioerror(ofname, "rename"); + { + remove(ofname); + if (rename(tfname.c_str(), ofname)) + throw ioerror(ofname, "rename"); + } } int