From bb0485f5561709b2d9a97fdeda9bfa1bd55a20c9 Mon Sep 17 00:00:00 2001 From: John Ousterhout Date: Thu, 17 Dec 2015 11:36:48 -0800 Subject: [PATCH] Fsutil_ls must close the directory after reading it --- src/filesys/fsutil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/filesys/fsutil.c b/src/filesys/fsutil.c index 447f291..5f045d6 100644 --- a/src/filesys/fsutil.c +++ b/src/filesys/fsutil.c @@ -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"); } -- 2.30.2