This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5103] still one (rather minor) issue with escaping in glob.
- From: "madcoder at debian dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 7 Oct 2007 14:37:29 -0000
- Subject: [Bug libc/5103] still one (rather minor) issue with escaping in glob.
- References: <20071004093126.5103.madcoder@debian.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From madcoder at debian dot org 2007-10-07 14:37 -------
(In reply to comment #1)
> What you describe are no valid uses of glob. There is one parameter to
many.
> Correct the description.
Err of course, the "%d\n" are spurious... sorry.
Doesn't work:
glob("\\/*", 0, 0, &buf) /* should match /bin, /usr, ... */
glob("\\/???", 0, 0, &buf) /* should match /bin, /usr, ... */
glob("\\/??n", 0, 0, &buf) /* should match /bin */
Works:
glob("\\/bin/*", 0, 0, &buf)
glob("/\\/*", 0, 0, &buf)
So I assume the issue is with a pattern begining with "\\/" directly followed
by a globbing char.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5103
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.