From d2bb917df6acf2407ecb08ad8288946f510a1d8f Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Mon, 1 Jan 2024 17:14:15 +0100 Subject: [PATCH] fix(mkdwarfs): use os_access for mapping input filesystem --- src/mkdwarfs_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mkdwarfs_main.cpp b/src/mkdwarfs_main.cpp index 584347828..dd7385f21 100644 --- a/src/mkdwarfs_main.cpp +++ b/src/mkdwarfs_main.cpp @@ -1121,8 +1121,8 @@ int mkdwarfs_main(int argc, sys_char** argv, iolayer const& iol) { if (recompress) { filesystem_options fsopts; fsopts.image_offset = filesystem_options::IMAGE_OFFSET_AUTO; - input_filesystem = std::make_unique( - lgr, std::make_shared(path), fsopts); + input_filesystem = + std::make_unique(lgr, iol.os->map_file(path), fsopts); cat_resolver = std::make_shared( input_filesystem->get_all_block_categories());