summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2023-04-04 20:57:11 +0200
committerTim Flynn <trflynn89@pm.me>2023-04-05 07:30:38 -0400
commit9b4b12f133850dcc3b3c27c240dabbe1faefd17f (patch)
tree2d3d3c801f15f2602cf920acf4092d1a03a5396c
parent081cd9f9af41a3d3e30d5ab29dd8c849f2a6ac58 (diff)
downloadserenity-9b4b12f133850dcc3b3c27c240dabbe1faefd17f.zip
tar: Use BufferedFile for reading inputs
-rw-r--r--Userland/Utilities/tar.cpp2
1 files changed, 1 insertions, 1 deletions
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<int> serenity_main(Main::Arguments arguments)
if (!directory.is_empty())
TRY(Core::System::chdir(directory));
- NonnullOwnPtr<Stream> input_stream = TRY(Core::File::open_file_or_standard_stream(archive_file, Core::File::OpenMode::Read));
+ NonnullOwnPtr<Stream> 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<Compress::GzipDecompressor>(move(input_stream));