[Mono-bugs] [Bug 34076][Wis] New - Directory loading routines in Mono fail if there are broken links on a directory.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
15 Nov 2002 11:27:55 -0000
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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=34076
--- shadow/34076 Fri Nov 15 06:27:55 2002
+++ shadow/34076.tmp.13317 Fri Nov 15 06:27:55 2002
@@ -0,0 +1,40 @@
+Bug#: 34076
+Product: Mono/Runtime
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: miguel@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Summary: Directory loading routines in Mono fail if there are broken links on a directory.
+
+Create a directory for testing:
+
+mkdir test
+cd test
+ln -s /tmp/nonexistant-file .
+
+Then compile and run the following program:
+
+
+using System;
+using System.IO;
+class X {
+ static void Main ()
+ {
+ string [] s = Directory.GetFiles (".", "*");
+
+ foreach (string ss in s)
+ Console.WriteLine (ss);
+ }
+}
+
+The above program will not return anything. If any broken symlinks exist,
+the whole process is essentially aborted.