Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve tar loader for windows #353

Merged
merged 5 commits into from
Aug 21, 2023

Conversation

JSCU-CNI
Copy link
Contributor

@JSCU-CNI JSCU-CNI commented Aug 9, 2023

This PR adds improved support for relative and absolute tar member name paths when dealing with windows tar filesystems.

In the future we'd like to replace this map function with the mapping functionality of TarFilesystem. For now this is a quick fix to improve tar loader detection on our end.

dissect/target/loaders/tar.py Outdated Show resolved Hide resolved
dissect/target/loaders/tar.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Merging #353 (564bf08) into main (af9786a) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #353   +/-   ##
=======================================
  Coverage   71.77%   71.78%           
=======================================
  Files         238      238           
  Lines       18702    18704    +2     
=======================================
+ Hits        13424    13427    +3     
+ Misses       5278     5277    -1     
Flag Coverage Δ
unittests 71.78% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
dissect/target/loaders/tar.py 100.00% <100.00%> (+1.85%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Schamper
Schamper previously approved these changes Aug 21, 2023
Copy link
Member

@Schamper Schamper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed the linting error in the CI. If you can fix that it's good to go.

@Schamper Schamper merged commit b415e3f into fox-it:main Aug 21, 2023
10 checks passed
@JSCU-CNI JSCU-CNI deleted the fix/tar-loader-sysvol-detection branch January 4, 2024 13:02
Zawadidone pushed a commit to Zawadidone/dissect.target that referenced this pull request Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants