[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#445210: closed by Pierre Habouzit <madcoder@debian.org> (Re: Bug#445210: libc6: glob(3) doesn't treat \ correctly)



reopen 445210
quit

On Thu, Oct 04, 2007 at 08:27:04AM +0000, Debian Bug Tracking System wrote:
>
> and the test case on http://sourceware.org/bugzilla/show_bug.cgi?id=3996 works
> as well.
> 
> Please check your environment, the libc works.

There were other tests in the bug report.

$ cat a.c
#include <glob.h>
#include <stdio.h>

int main() {
        glob_t pglob;
        printf("%d\n", glob("\\/*", 0, 0, &pglob));
        printf("%d\n", glob("/*", 0, 0, &pglob));
        return 0;
}
$ make a
cc     a.c   -o a
$ ./a
3
0
$

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt




Reply to: