archive/bzip2: use OpenLocalInputStream()

This commit is contained in:
Max Kellermann 2014-10-02 21:15:48 +02:00
parent 7e12aea1d8
commit 8302ed44aa

View File

@ -28,6 +28,7 @@
#include "../ArchiveVisitor.hxx" #include "../ArchiveVisitor.hxx"
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include "input/InputPlugin.hxx" #include "input/InputPlugin.hxx"
#include "input/LocalOpen.hxx"
#include "util/RefCount.hxx" #include "util/RefCount.hxx"
#include "util/Error.hxx" #include "util/Error.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
@ -140,8 +141,7 @@ bz2_open(Path pathname, Error &error)
{ {
static Mutex mutex; static Mutex mutex;
static Cond cond; static Cond cond;
InputStream *is = InputStream::OpenReady(pathname.c_str(), mutex, cond, InputStream *is = OpenLocalInputStream(pathname, mutex, cond, error);
error);
if (is == nullptr) if (is == nullptr)
return nullptr; return nullptr;