This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/3996] New: glob doesn't treat escaped stars correctly


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]