From 8302ed44aa4918a647bdbe8bf69fb3d92833a427 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Thu, 2 Oct 2014 21:15:48 +0200
Subject: archive/bzip2: use OpenLocalInputStream()

---
 src/archive/plugins/Bzip2ArchivePlugin.cxx | 4 ++--
 1 file 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;
 
-- 
cgit v1.2.3