summaryrefslogtreecommitdiff
path: root/Userland/Utilities/mount.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/mount.cpp')
-rw-r--r--Userland/Utilities/mount.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/mount.cpp b/Userland/Utilities/mount.cpp
index bee21b39a0..21e731f58b 100644
--- a/Userland/Utilities/mount.cpp
+++ b/Userland/Utilities/mount.cpp
@@ -150,7 +150,7 @@ static ErrorOr<void> print_mounts()
// Output info about currently mounted filesystems.
auto df = TRY(Core::Stream::File::open("/sys/kernel/df"sv, Core::Stream::OpenMode::Read));
- auto content = TRY(df->read_all());
+ auto content = TRY(df->read_until_eof());
auto json = TRY(JsonValue::from_string(content));
json.as_array().for_each([](auto& value) {