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-$$ ==================================================
Testing a patch.
Should be fixed in CVS: http://sources.redhat.com/ml/glibc-cvs/2007-q1/msg00238.html