* src/dir.c (dir_read): New args STARTFILE and STARTFILE_ONLY, to avoid unnecessary allocation and copying. All uses changed. * tests/starting-file: New test. * tests/Makefile.am (TESTS): Add it.