From 6ab17b891d0346a4cddf5a7a39379a0ed850235e Mon Sep 17 00:00:00 2001 From: Poeloe <22234727+Poeloe@users.noreply.github.com> Date: Tue, 19 Nov 2024 13:55:00 +0100 Subject: [PATCH] Strip trailing dir separator for translated file paths in ITunesLoader Fixes #947 --- dissect/target/loaders/itunes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dissect/target/loaders/itunes.py b/dissect/target/loaders/itunes.py index 7a96a4630..4c7274d87 100644 --- a/dissect/target/loaders/itunes.py +++ b/dissect/target/loaders/itunes.py @@ -288,7 +288,7 @@ def translate_file_path(domain: str, relative_path: str) -> str: package_name = "" domain_path = fsutil.join(DOMAIN_TRANSLATION.get(domain, domain), package_name) - return fsutil.join(domain_path, relative_path) + return fsutil.join(domain_path, relative_path).strip("/") def parse_key_bag(buf: bytes) -> tuple[dict[str, bytes, int], dict[str, ClassKey]]: