[Mono-dev] IOMAP fix for CreateFile()

Jeffrey Stedfast fejj at novell.com
Thu Sep 10 16:06:41 EDT 2009


In mono/io-layer/io.c's CreateFile() function, if the first call to
_wapi_open() fails due to the path being a directory, it is retried w/o
WRITE permissions. As far as I can tell, the fallback open() call should
really be a _wapi_open() so that IOMAP magic is applied just as it was
in the first attempt.

Attached is a patch to fix that (assuming I'm correct in what it should
be doing).

Jeff

-------------- next part --------------
A non-text attachment was scrubbed...
Name: io-layer.patch
Type: text/x-patch
Size: 839 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090910/1b0e38d7/attachment.bin 


More information about the Mono-devel-list mailing list