Skip to content

Commit

Permalink
Strip trailing dir separator for translated file paths in ITunesLoader
Browse files Browse the repository at this point in the history
Fixes #947
  • Loading branch information
Poeloe committed Nov 19, 2024
1 parent 7d65c2b commit 6ab17b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dissect/target/loaders/itunes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]:
Expand Down

0 comments on commit 6ab17b8

Please sign in to comment.