Issue 1404
Hard lockup if getdents() is called on a file rather than a directory.