[Mono-bugs] [Bug 77759][Nor] New - Directory.GetDirectories() returns block devices

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Mar 10 15:27:30 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=77759

--- shadow/77759	2006-03-10 15:27:30.000000000 -0500
+++ shadow/77759.tmp.1964	2006-03-10 15:27:30.000000000 -0500
@@ -0,0 +1,54 @@
+Bug#: 77759
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: io-layer
+AssignedTo: dick at ximian.com                            
+ReportedBy: slomo at ubuntu.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Directory.GetDirectories() returns block devices
+
+Hi,
+the program below ends in a infinite recursion because
+Directory.GetDirectories() returns block devices. Character devices are not
+returned.
+This is plain mono 1.1.13.4 on Ubuntu Dapper.
+
+Run it the following way:
+mkdir foo
+mknod foo/bar b 12 12
+test.exe foo
+....
+
+Bye
+
+PS: Similar to http://bugzilla.ximian.com/show_bug.cgi?id=76966
+
+
+
+using System;
+using System.IO;
+
+public class test {
+
+   public static void recurse( DirectoryInfo info )
+   {
+         Console.WriteLine("{0}", info.FullName);
+         foreach (DirectoryInfo dinfo in info.GetDirectories()) {
+            recurse( dinfo );
+         }
+   }
+
+   public static void Main( string [] args )
+   {
+      recurse (new DirectoryInfo (args[0]));
+   }
+}


More information about the mono-bugs mailing list