This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1342] New: glob doesn't strip backslashes with GLOB_NOCHECK
- From: "vela at debian dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 14 Sep 2005 10:57:54 -0000
- Subject: [Bug libc/1342] New: glob doesn't strip backslashes with GLOB_NOCHECK
- Reply-to: sourceware-bugzilla at sourceware dot org
If glob is called with GLOB_NOCHECK and a pattern that doesn't contain
metacharacters, it will simply copy the pattern to the result without
removing backslashes.
An example of incorrect behavior:
~/cvs/libc$ posix/globtest -c . '\no-metacharacters'
`\no-metacharacters'
An example of correct behavior, as observed on FreeBSD:
$ ./globtest -c . '\no-metacharacters'
`no-metacharacters'
--
Summary: glob doesn't strip backslashes with GLOB_NOCHECK
Product: glibc
Version: 2.3.5
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: vela at debian dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=1342
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.