Skip to content

source-pcap-file: include unlink error in warning message#8981

Closed
longdoan7421 wants to merge 1 commit intoOISF:masterfrom
longdoan7421:master
Closed

source-pcap-file: include unlink error in warning message#8981
longdoan7421 wants to merge 1 commit intoOISF:masterfrom
longdoan7421:master

Conversation

@longdoan7421
Copy link
Contributor

Context:

When suricata runs with option --pcap-file-delete, in some cases it can be failed to delete the pcap files because of several reasons. However, the warning message does not give any hints regarding the cause of unsuccessful delete operation. Therefore, including error of unlink function in the warning message could be beneficial for debugging.


Make sure these boxes are signed before submitting your Pull Request -- thank you.

Link to redmine ticket: N/A

Describe changes:

  • Include unlink function's error in warning message when deleting pcap files failed.

@github-actions
Copy link

github-actions bot commented Jun 7, 2023

NOTE: This PR may contain new authors:

Long Doan <hoanglong7421@gmail.com>

@codecov
Copy link

codecov bot commented Jun 7, 2023

Codecov Report

Merging #8981 (8a59bea) into master (6154bab) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8981      +/-   ##
==========================================
- Coverage   82.42%   82.41%   -0.01%     
==========================================
  Files         969      969              
  Lines      273476   273476              
==========================================
- Hits       225410   225393      -17     
- Misses      48066    48083      +17     
Flag Coverage Δ
fuzzcorpus 64.93% <0.00%> (-0.01%) ⬇️
suricata-verify 60.49% <0.00%> (-0.02%) ⬇️
unittests 62.91% <0.00%> (ø)

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

@victorjulien
Copy link
Member

CI failure is unrelated to the PR.

victorjulien
victorjulien previously approved these changes Jun 7, 2023
@victorjulien
Copy link
Member

Merged in #8994, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants