[Bug 45935] Race condition in implementation of MoveFile, MoveFileEx, MoveFileWithProgress

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Oct 7 19:02:22 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=45935

Zebediah Figura <z.figura12 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |z.figura12 at gmail.com

--- Comment #7 from Zebediah Figura <z.figura12 at 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.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list