Skip to content
Snippets Groups Projects
Commit 8abe2bcf authored by kaashoek's avatar kaashoek
Browse files

don't print unallocated dir entries

parent 211ff0c6
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment