[Bug libc/1342] New: glob doesn't strip backslashes with GLOB_NOCHECK

vela at debian dot org sourceware-bugzilla@sourceware.org
Wed Sep 14 10:58:00 GMT 2005


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.



More information about the Glibc-bugs mailing list