https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98386
--- Comment #5 from cqwrteur <unlvsur at live dot com> --- (In reply to Nathan Sidwell from comment #4) > Created attachment 49823 [details] > test patch > > This does an unlink before the rename, and also adds more logging. If it > fails, please try with -fdump-lang-module added and provide that dump unlink and rename is a TOCTOU security vulnerability. The correct method must use openat and NtCreateFile.