ArchivePlugin: pass Path to open()

This commit is contained in:
Max Kellermann
2014-02-08 13:21:50 +01:00
parent 9906daeca7
commit fe7c6fee34
8 changed files with 25 additions and 17 deletions

View File

@@ -26,6 +26,7 @@
#include "archive/ArchiveFile.hxx"
#include "../InputPlugin.hxx"
#include "fs/Traits.hxx"
#include "fs/Path.hxx"
#include "util/Alloc.hxx"
#include "Log.hxx"
@@ -69,7 +70,7 @@ input_archive_open(const char *pathname,
return nullptr;
}
auto file = archive_file_open(arplug, archive, error);
auto file = archive_file_open(arplug, Path::FromFS(archive), error);
if (file == nullptr) {
free(pname);
return nullptr;