getdents major bug fixed

wrong intermediate offset was used by getdents