Commit 553856cb authored by John Ousterhout's avatar John Ousterhout Committed by Darshit Shah
Browse files

Fsutil_ls must close the directory after reading it

parent 85cf5bff
......@@ -24,6 +24,7 @@ fsutil_ls (char **argv UNUSED)
PANIC ("root dir open failed");
while (dir_readdir (dir, name))
printf ("%s\n", name);
dir_close (dir);
printf ("End of listing.\n");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment