News for hackers. Stuff that matters.
Re:How the Windows Subsystem for Linux Redirects Syscalls by asveikau on Wednesday June 08, 2016 @09:18PM (#11866949)
What you can do while it's open is partially defined by the dwShareMode parameter in CreateFile. Unfortunately a lot of people look at the daunting documentation, shrug, and put 0 there, which is the least permissive mode. A lot of libraries do that too.

OTOH there are other limits that are not dictated by dwShareMode. Such as deleting files while handles are open - this blocks a new file with the same name from being created until all handles are closed. That's probably the worst one. There are some other crappy ones involving directory handles that I don't care to enumerate.

There are no comments on this comment yet.