-
Notifications
You must be signed in to change notification settings - Fork 44
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 UTMP misinterpretation of IPv6 addresses #292
Conversation
What is the best place for this code? So that the code can be re-used by the BTMP parser. |
Perhaps here, and yield some named tuples with this pre-parsed field instead of the direct cstruct entry? https://github.com/fox-it/dissect.target/blob/main/dissect/target/plugins/os/unix/log/utmp.py |
Co-authored-by: cecinestpasunepipe <110607403+cecinestpasunepipe@users.noreply.github.com>
@cecinestpasunepipe should the files |
You could also just put a |
Okay I have combined the functions |
@cecinestpasunepipe can you take look at this PR? |
Yes, I will review this PR right now. |
Codecov Report
@@ Coverage Diff @@
## main #292 +/- ##
==========================================
+ Coverage 71.87% 71.89% +0.02%
==========================================
Files 238 236 -2
Lines 18717 18725 +8
==========================================
+ Hits 13452 13463 +11
+ Misses 5265 5262 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 3 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
…into fix/utmp_ipv6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@pyrco @cecinestpasunepipe thank you for reviewing the PR and coming with suggestions to fix the problem. |
Closes #291