This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/3996] New: glob doesn't treat escaped stars correctly
- From: "madcoder at debian dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 7 Feb 2007 15:46:52 -0000
- Subject: [Bug libc/3996] New: glob doesn't treat escaped stars correctly
- Reply-to: sourceware-bugzilla at sourceware dot org
the test case is here:
==================================================
#!/bin/sh
set -e
mkdir /tmp/tst-$$
cd /tmp/tst-$$
mkdir '*'
touch '*/x'
cat > a.c <<'EOF'
#include <glob.h>
#include <stdio.h>
int main() {
glob_t pglob;
puts(glob("\\*/*", 0, 0, &pglob) ? "failure" : "works");
return 0;
}
EOF
gcc -Wall -W -o a a.c && ./a
cd /tmp
rm -rf tst-$$
==================================================
--
Summary: glob doesn't treat escaped stars correctly
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=3996
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.