Commit 8302ed44 authored by Max Kellermann's avatar Max Kellermann

archive/bzip2: use OpenLocalInputStream()

parent 7e12aea1
......@@ -28,6 +28,7 @@
#include "../ArchiveVisitor.hxx"
#include "input/InputStream.hxx"
#include "input/InputPlugin.hxx"
#include "input/LocalOpen.hxx"
#include "util/RefCount.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
......@@ -140,8 +141,7 @@ bz2_open(Path pathname, Error &error)
{
static Mutex mutex;
static Cond cond;
InputStream *is = InputStream::OpenReady(pathname.c_str(), mutex, cond,
error);
InputStream *is = OpenLocalInputStream(pathname, mutex, cond, error);
if (is == nullptr)
return nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment