From da843495fe385edd46ccdfdab5902247f12ee17c Mon Sep 17 00:00:00 2001 From: 3arthur6 Date: Sun, 14 Nov 2021 23:21:35 +0100 Subject: [PATCH] Fix lpdump issue with relatives img paths --- partition_tools/lpdump.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/partition_tools/lpdump.cc b/partition_tools/lpdump.cc index 047b5ee..450649e 100755 --- a/partition_tools/lpdump.cc +++ b/partition_tools/lpdump.cc @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -384,7 +385,7 @@ static std::unique_ptr ReadDeviceOrFile(const std::string& path, uin if (IsEmptySuperImage(path)) { return ReadFromImageFile(path); } - return ReadMetadata(path, slot); + return ReadMetadata(std::filesystem::absolute(path), slot); } int LpdumpMain(int argc, char* argv[], std::ostream& cout, std::ostream& cerr) { -- 2.34.1