Gcc 4 complained about a readlink() call in glob.c that had a NULL buffer arg, so I checked the code, and it appears that the function statfullpath() always returned 1 (missing file) for a symlink that points nowhere. This is due to the readlink() call with a zero-sized buffer always returning -1 (on my system, at least). The fix is to supply a one-character buffer so that readlink() only returns a -1 when the file is totally missing or cannot be read. Patch appended. ..wayne..