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/1342] New: glob doesn't strip backslashes with GLOB_NOCHECK


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.


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