diff options
Diffstat (limited to 'Userland/Utilities/route.cpp')
-rw-r--r-- | Userland/Utilities/route.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/route.cpp b/Userland/Utilities/route.cpp index 633bb58595..420ba50918 100644 --- a/Userland/Utilities/route.cpp +++ b/Userland/Utilities/route.cpp @@ -90,7 +90,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) if (modify_action.is_empty()) { auto file = TRY(Core::Stream::File::open("/sys/kernel/net/route"sv, Core::Stream::OpenMode::Read)); - auto file_contents = TRY(file->read_all()); + auto file_contents = TRY(file->read_until_eof()); auto json = TRY(JsonValue::from_string(file_contents)); outln("Kernel IP routing table"); |