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

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Oct 7 19:34:36 CDT 2018


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

--- Comment #9 from Zebediah Figura <z.figura12 at gmail.com> ---
(In reply to Joshua from comment #8)
> I don't know enough about the internals of Wine to know if you could take an
> exclusive lock on a file name that corresponds to a non-extant file. I do
> know that there's no way that Copy+Delete will ever work. The race condition
> on that one is stupid huge, as the reader could pick up a partial or empty
> file. The original author didn't do the rename() thing but just kept on
> opening files until he got a name that didn't exist. We found that one years
> ago because it was really broken.
> 

I'm not sure where you're getting that; what race condition are you expecting
in the case of copy+delete? It's already the fallback for moving files across
filesystems (i.e. rename() returns EXDEV).

-- 
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