[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 08:28:59 -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 dick@ximian.com.


--- shadow/70498	2004-12-13 02:00:56.000000000 -0500
+++ shadow/70498.tmp.8318	2004-12-13 08:28:58.000000000 -0500
@@ -50,6 +50,12 @@
 ------- 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?
+------- Additional Comments From dick@ximian.com  2004-12-13 08:28 -------
+The patch is OK, I would change the io.c comment to say something more
+explicit about the MoveFile behavour.  eg "MoveFile sets
+ERROR_ALREADY_EXISTS if the destination exists, except when it is the
+same file as the source.  In that case it silently succeeds."