Bug in readdir

Signed-off-by: Ronald G. Minnich <rminnich@google.com>