[Mono-list] Bugfix for File.Set*Time() for directories

Dick Porter dick@ximian.com
03 Mar 2003 13:20:27 +0000


On Fri, 2003-02-28 at 18:43, Elan Feingold wrote:
> * [io-layer/io.c]: Calling File.Set[LastWrite|LastAccess|Create]Time()
> on a directory was failing, because the I/O layer was trying to open the
> directory with write permission, which fails with EISDIR. This patch
> works around the problem by recognizing this condition and reopening
> without write permission.

Patch applied, thanks.

- Dick