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

Handle hardlink or regular file for /etc/localtime #367

Merged
merged 7 commits into from
Aug 21, 2023

Conversation

yunzheng
Copy link
Member

@yunzheng yunzheng commented Aug 21, 2023

A symlink is not always guaranteed for /etc/localtime.
This adds extra handling for hardlinks and regular files.

Issue found via: fox-it/citrix-netscaler-triage#4

A symlink is not always guaranteed for /etc/localtime.
This adds extra handling for hardlinks and regular files.
@yunzheng yunzheng requested a review from Schamper August 21, 2023 12:46
@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Merging #367 (f30890e) into main (b415e3f) will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #367      +/-   ##
==========================================
+ Coverage   71.78%   71.87%   +0.08%     
==========================================
  Files         238      238              
  Lines       18704    18717      +13     
==========================================
+ Hits        13427    13452      +25     
+ Misses       5277     5265      -12     
Flag Coverage Δ
unittests 71.87% <100.00%> (+0.08%) ⬆️

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

Files Changed Coverage Δ
dissect/target/plugins/os/unix/locale.py 100.00% <100.00%> (+8.33%) ⬆️

... and 3 files with indirect coverage changes

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

yunzheng and others added 3 commits August 21, 2023 15:17
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
@yunzheng yunzheng requested a review from Schamper August 21, 2023 13:26
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
@yunzheng yunzheng merged commit f895370 into main Aug 21, 2023
@yunzheng yunzheng deleted the bugfix/unix-localtime-hardlink-regularfile branch August 21, 2023 14:31
Poeloe pushed a commit that referenced this pull request Feb 29, 2024
A symlink is not always guaranteed for /etc/localtime.
This adds extra handling for hardlinks and regular files.

Issue found via: fox-it/citrix-netscaler-triage#4

Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Zawadidone pushed a commit to Zawadidone/dissect.target that referenced this pull request Apr 5, 2024
A symlink is not always guaranteed for /etc/localtime.
This adds extra handling for hardlinks and regular files.

Issue found via: fox-it/citrix-netscaler-triage#4

Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
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.

2 participants