From 9b4b12f133850dcc3b3c27c240dabbe1faefd17f Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Tue, 4 Apr 2023 20:57:11 +0200 Subject: [PATCH] tar: Use BufferedFile for reading inputs --- Userland/Utilities/tar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/tar.cpp b/Userland/Utilities/tar.cpp index 58124933e8..dcd3a4f4fc 100644 --- a/Userland/Utilities/tar.cpp +++ b/Userland/Utilities/tar.cpp @@ -74,7 +74,7 @@ ErrorOr serenity_main(Main::Arguments arguments) if (!directory.is_empty()) TRY(Core::System::chdir(directory)); - NonnullOwnPtr input_stream = TRY(Core::File::open_file_or_standard_stream(archive_file, Core::File::OpenMode::Read)); + NonnullOwnPtr input_stream = TRY(Core::BufferedFile::create(TRY(Core::File::open_file_or_standard_stream(archive_file, Core::File::OpenMode::Read)))); if (gzip) input_stream = make(move(input_stream));