[Mono-bugs] [Bug 40557][Min] Changed - square brackets and braces cause Directory.cs methods to act incorrectly
Mon, 4 Aug 2003 18:04:22 -0400 (EDT)
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 email@example.com.
--- shadow/40557 Mon Mar 31 00:20:32 2003
+++ shadow/40557.tmp.18020 Mon Aug 4 18:04:22 2003
@@ -2,18 +2,18 @@
Product: Mono/Class Libraries
OS Details: Gentoo 1.4rc3
Summary: square brackets and braces cause Directory.cs methods to act incorrectly
This is my first bug report ever, for anything, so please let me know if i
@@ -54,6 +54,15 @@
I would expect it to find 2 files, or throw an exception if it can't find
How often does this happen?
+------- Additional Comments From firstname.lastname@example.org 2003-08-04 18:04 -------
+It appears that this is because the FindFirstFile method in
+mono/mono/io-layer/io.c uses the glob(7) function to parse the
+pattern. glob accepts three wild cards *, ?, and brackets (character
+classes). It's unclear what the desired functionality of pattern
+matching should be. If it is to correspond to Win32 pattern matching,
+then all brackets should be escaped. Otherwise, the behavior is
+correct, and it's up to the user to do her own escaping.