mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +00:00
tar: Use BufferedFile for reading inputs
This commit is contained in:
parent
081cd9f9af
commit
9b4b12f133
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
if (!directory.is_empty())
|
if (!directory.is_empty())
|
||||||
TRY(Core::System::chdir(directory));
|
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)
|
if (gzip)
|
||||||
input_stream = make<Compress::GzipDecompressor>(move(input_stream));
|
input_stream = make<Compress::GzipDecompressor>(move(input_stream));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue