in reply to Re^3: readdir() on a sysopen() handle?
in thread readdir() on a sysopen() handle?

-d following symlinks is not a bug because it calls stat() which follows symlinks as required by POSIX. You have to use lstat() (or -l) if you don't want that.