Remove warnings for rm_overwrite().
Only use the local stack variable for the lstat() result.
Attach the temp file overwriting to the normal cleanup.