public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/5103] New: still one (rather minor) issue with escaping in glob.
@ 2007-10-04 9:31 madcoder at debian dot org
2007-10-04 10:01 ` [Bug libc/5103] " madcoder at debian dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: madcoder at debian dot org @ 2007-10-04 9:31 UTC (permalink / raw)
To: glibc-bugs
glob("%d\n", "\\/*", 0, 0, &buf) yields GLOB_NOMATCH where it should yield 0.
Though, glob("%d\n", "/\\/*", 0, 0, &buf) works correctly,
glob("%d\n", "\\/bin/*", 0, 0, &buf) as well.
it seems that the issue is with "\\/" directly followed by globbing chars
("\\/???" or "\\/??n" fail as well, where both should at least match /bin).
I've not been able to make it fail if the pattern wasn't of this form.
--
Summary: still one (rather minor) issue with escaping in glob.
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: madcoder at debian dot org
CC: glibc-bugs at sources dot redhat dot com
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/5103] still one (rather minor) issue with escaping in glob.
2007-10-04 9:31 [Bug libc/5103] New: still one (rather minor) issue with escaping in glob madcoder at debian dot org
@ 2007-10-04 10:01 ` madcoder at debian dot org
2007-10-05 21:32 ` drepper at redhat dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: madcoder at debian dot org @ 2007-10-04 10:01 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |debian-glibc at lists dot
| |debian dot org
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/5103] still one (rather minor) issue with escaping in glob.
2007-10-04 9:31 [Bug libc/5103] New: still one (rather minor) issue with escaping in glob madcoder at debian dot org
2007-10-04 10:01 ` [Bug libc/5103] " madcoder at debian dot org
@ 2007-10-05 21:32 ` drepper at redhat dot com
2007-10-07 14:37 ` madcoder at debian dot org
2007-10-07 18:55 ` drepper at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: drepper at redhat dot com @ 2007-10-05 21:32 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2007-10-05 21:32 -------
What you describe are no valid uses of glob. There is one parameter to many.
Correct the description.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/5103] still one (rather minor) issue with escaping in glob.
2007-10-04 9:31 [Bug libc/5103] New: still one (rather minor) issue with escaping in glob madcoder at debian dot org
2007-10-04 10:01 ` [Bug libc/5103] " madcoder at debian dot org
2007-10-05 21:32 ` drepper at redhat dot com
@ 2007-10-07 14:37 ` madcoder at debian dot org
2007-10-07 18:55 ` drepper at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: madcoder at debian dot org @ 2007-10-07 14:37 UTC (permalink / raw)
To: glibc-bugs
------- 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/5103] still one (rather minor) issue with escaping in glob.
2007-10-04 9:31 [Bug libc/5103] New: still one (rather minor) issue with escaping in glob madcoder at debian dot org
` (2 preceding siblings ...)
2007-10-07 14:37 ` madcoder at debian dot org
@ 2007-10-07 18:55 ` drepper at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: drepper at redhat dot com @ 2007-10-07 18:55 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2007-10-07 18:55 -------
Should be fixed in cvs.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-10-07 18:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-04 9:31 [Bug libc/5103] New: still one (rather minor) issue with escaping in glob madcoder at debian dot org
2007-10-04 10:01 ` [Bug libc/5103] " madcoder at debian dot org
2007-10-05 21:32 ` drepper at redhat dot com
2007-10-07 14:37 ` madcoder at debian dot org
2007-10-07 18:55 ` drepper at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).