[Mono-bugs] [Bug 38397][Nor] Changed - DirectoryInfo.Parent returns invalid root directory

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sun, 2 Mar 2003 12:17:50 -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=38397

--- shadow/38397	Thu Feb 20 10:01:37 2003
+++ shadow/38397.tmp.31885	Sun Mar  2 12:17:50 2003
@@ -1,14 +1,14 @@
 Bug#: 38397
 Product: Mono/Runtime
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: Debian Sid
-Status: NEW   
-Resolution: 
-Severity: 
+Status: RESOLVED   
+Resolution: FIXED
+Severity: Unknown
 Priority: Normal
 Component: misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: bugs@mbalz.de               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -42,6 +42,16 @@
 
 How often does this happen? 
 everytime
 
 Additional Information:
 Mono 0.19 on current Debian Sid
+
+------- Additional Comments From gonzalo@ximian.com  2003-03-02 12:17 -------
+Thr fix to Path.GetDirectoryName almost fixed DirectoryInfo.
+
+However, the 3 lines of code you provided, cause a
+NullReferenceException under MS (instead of /tmp I use \WINNT) because
+the parent of the root directory is null.
+
+I've fixed this and also made our implementation work as MS does wrt
+nulls. Also DirectoryInfo.ToString () has been changed to match MS.