[Mono-bugs] [Bug 76966][Nor] Changed - [PATCH] Directory.GetDirectories() returns unix domain sockets

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Mar 6 08:11:10 EST 2006


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 slomo at ubuntu.com.

http://bugzilla.ximian.com/show_bug.cgi?id=76966

--- shadow/76966	2006-01-03 09:37:46.000000000 -0500
+++ shadow/76966.tmp.16251	2006-03-06 08:11:10.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 76966
 Product: Mono: Class Libraries
 Version: 1.1
 OS: unknown
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: CORLIB
 AssignedTo: sebastien at ximian.com                            
 ReportedBy: gnome at flowerday.cx               
 QAContact: mono-bugs at ximian.com
@@ -43,6 +43,25 @@
 special case and they turned out to be seen as directories.
 Sockets (0140000) != Directory (040000) + Regular file (0100000)
 
 ------- Additional Comments From sebastien at ximian.com  2006-01-03 09:37 -------
 Fixed in SVN (r55004).
 Thanks for the sample code.
+
+------- Additional Comments From slomo at ubuntu.com  2006-03-06 08:11 -------
+This fix is broken... the following program doesn't return any
+directories with GetDirectories() although there are some.
+
+
+using System;
+using System.IO;
+
+public class Test {
+
+	public static void Main(string[] args) {
+		DirectoryInfo info = new DirectoryInfo(args[0]);
+		System.Console.WriteLine(info.GetDirectories().Length);
+		foreach(DirectoryInfo sinfo in info.GetDirectories()) 
+			System.Console.WriteLine(sinfo.FullName);
+		
+	}
+}


More information about the mono-bugs mailing list