diff options
author | Max Kellermann <max@duempel.org> | 2014-10-02 21:15:48 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-10-02 22:00:42 +0200 |
commit | 8302ed44aa4918a647bdbe8bf69fb3d92833a427 (patch) | |
tree | 5b1f7041325529bf57c0578c02b37ee3e9045364 /src/archive | |
parent | 7e12aea1d8f90d375627acc9f4a532009781aa26 (diff) |
archive/bzip2: use OpenLocalInputStream()
Diffstat (limited to 'src/archive')
-rw-r--r-- | src/archive/plugins/Bzip2ArchivePlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archive/plugins/Bzip2ArchivePlugin.cxx b/src/archive/plugins/Bzip2ArchivePlugin.cxx index 14a68fdb5..2b92049dd 100644 --- a/src/archive/plugins/Bzip2ArchivePlugin.cxx +++ b/src/archive/plugins/Bzip2ArchivePlugin.cxx @@ -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; |