https://bugs.winehq.org/show_bug.cgi?id=45935
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #7 from Zebediah Figura z.figura12@gmail.com --- I suspect we don't want a fallback to have this kind of race condition on any operating system if we can avoid it.
Could we hold an open handle to the destination, with exclusive sharing, while performing the rename()? That would prevent any win32 APIs from writing to the file before we do, but I'm not sure if there's any reason it wouldn't work.
If that doesn't work I guess we should fall back to copy+delete.