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

Bug#481862: libc6: glob(3) broken again



Package: libc6
Version: 2.7-11
Severity: normal

#include <glob.h>
#include <stdio.h>

int main() {
	glob_t pglob;
	printf("%d\n", glob("/de*", 0, 0, &pglob));
	printf("%d\n", pglob.gl_flags & GLOB_MAGCHAR);
	printf("%d\n", glob("/*/null", 0, 0, &pglob));
	printf("%d\n", pglob.gl_flags & GLOB_MAGCHAR);
	return 0;
}

This program prints:

$ ./a
0
256
0
0
$

The last 0 should be 256 since /dev/null exists.  Please refer to
bug 67921 for the full history of this bug.

-- System Information
Debian Release: 4.0
Kernel Version: Linux gondolin 2.6.17-rc4 #1 SMP PREEMPT Wed May 17 17:28:00 EST 2006 i686 GNU/Linux



Reply to: