[Mono-bugs] [Bug 70498][Nor] Changed - File::Move does not behaves like Msft one.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 13 Dec 2004 02:00:56 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=70498
--- shadow/70498 2004-12-13 01:59:17.000000000 -0500
+++ shadow/70498.tmp.5793 2004-12-13 02:00:56.000000000 -0500
@@ -2,21 +2,20 @@
Product: Mono: Runtime
Version: 1.0
OS: All
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: io-layer
AssignedTo: mono-bugs@ximian.com
ReportedBy: mono@evain.net
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
-Cc:
Summary: File::Move does not behaves like Msft one.
Description of Problem:
System.IO.File::Move(string, string) now throws an exception while trying
to move a file on itself.
Msft here call the MoveFile from kernel32 that do nothing if source and
@@ -44,6 +43,13 @@
------- Additional Comments From gonzalo@ximian.com 2004-12-13 01:59 -------
Created an attachment (id=13487)
Patch for System.IO/File.cs
+
+------- Additional Comments From gonzalo@ximian.com 2004-12-13 02:00 -------
+The 2 patches above delay the detection of an already existing file
+until MoveFile in io-layer is called. If the file is the same (same
+device and inode), it does not fail (rename(2) does not fail).
+
+Dick, okay to commit?