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

Fix edge case where unix history path is a directory #727

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

JSCU-CNI
Copy link
Contributor

In the edge case where the path of a unix history file is a directory, the unix history plugin fails as it only checks the path exists and, if so, assumes it is a file. This PR fixes this problem by explicitly checking the path is a file.

@cecinestpasunepipe
Copy link
Contributor

Thanks, on first sight this looks good. We'll try to process this PR asap.

Copy link

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.92%. Comparing base (c1e384f) to head (5ba00ec).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #727   +/-   ##
=======================================
  Coverage   74.92%   74.92%           
=======================================
  Files         295      295           
  Lines       25065    25065           
=======================================
  Hits        18781    18781           
  Misses       6284     6284           
Flag Coverage Δ
unittests 74.92% <100.00%> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cecinestpasunepipe cecinestpasunepipe requested a review from pyrco June 19, 2024 10:41
@pyrco pyrco force-pushed the fix-unix-history-directory branch from b4155ce to 5ba00ec Compare June 27, 2024 09:15
@pyrco pyrco merged commit ec9391f into fox-it:main Jun 27, 2024
17 of 18 checks passed
otnxSl pushed a commit to otnxSl/dissect.target that referenced this pull request Jul 9, 2024
@JSCU-CNI JSCU-CNI deleted the fix-unix-history-directory branch August 1, 2024 11:10
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.

3 participants