don't print unallocated dir entries

feat/start
kaashoek 2006-08-13 15:05:58 +00:00
parent 211ff0c67e
commit 8abe2bcf15
1 changed files with 2 additions and 1 deletions

3
ls.c
View File

@ -35,7 +35,8 @@ main(int argc, char *argv[])
printf(2, "ls: read error\n");
exit();
}
printf(1, "%s\n", dirent.name);
if (dirent.inum != 0)
printf(1, "%s\n", dirent.name);
}
close(fd);