[Mono-dev] [Patch] Report an error if src and dest are the same in Copy

Carlos Alberto Cortez calberto.cortez at gmail.com
Fri Nov 27 09:14:05 EST 2009


Yes - sorry, I forgot to send it with the previous patch ;-)

Carlos.

2009/11/27 Rodrigo Kumpera <kumpera at gmail.com>

> Do you have a test case for that?
>
>
> On Fri, Nov 27, 2009 at 12:09 AM, Carlos Alberto Cortez <
> calberto.cortez at gmail.com> wrote:
>
>> Hey,
>>
>> The attached patch on CopyFile on our io-layer -which is used by
>> System.IO.File.Copy- check if the source and the destination are the same,
>> and in that case, report that the file is currently in use, and proceed to
>> throw an exception. I tried to add this check directly in our C# side, but
>> then moved the check to our io-layer side so we could take advantage of our
>> IOMAP capability.
>>
>> Could anybody with experience in the io-layer review?
>>
>> Thanks!
>>
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20091127/575cf968/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filetest.patch
Type: text/x-patch
Size: 901 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20091127/575cf968/attachment.bin 


More information about the Mono-devel-list mailing list