commit 8abe2bcf156cce7beec21b259a59aaaa538165c0 parent 211ff0c67ea6737853cf932313cf4e27cc15f55c Author: kaashoek <kaashoek> Date: Sun, 13 Aug 2006 15:05:58 +0000 don't print unallocated dir entries Diffstat:
M | ls.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ls.c b/ls.c @@ -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);