Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
operating-systems
ws21
assignments
Commits
553856cb
Commit
553856cb
authored
Dec 17, 2015
by
John Ousterhout
Committed by
Darshit Shah
Oct 20, 2017
Browse files
Fsutil_ls must close the directory after reading it
parent
85cf5bff
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/filesys/fsutil.c
View file @
553856cb
...
...
@@ -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
"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment