projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6944d77
)
Fsutil_ls must close the directory after reading it
author
John Ousterhout
<ouster@cs.stanford.edu>
Thu, 17 Dec 2015 19:36:48 +0000
(11:36 -0800)
committer
John Ousterhout
<ouster@cs.stanford.edu>
Thu, 17 Dec 2015 19:36:48 +0000
(11:36 -0800)
src/filesys/fsutil.c
patch
|
blob
|
history
diff --git
a/src/filesys/fsutil.c
b/src/filesys/fsutil.c
index 447f29131c8395cb36f30c0fb24fff0f7f19fccb..5f045d64a5ad076f02d686007687d0a93a082f90 100644
(file)
--- 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");
}